Problems with agents scales #1167
Replies: 1 comment 1 reply
-
Scales are relative scaling of the original model size (so 1.0 provides
default scaling). So if you want absolute scaling you would want the input
model to have dimensions 1x1x1, I think this is the case for the primitives
(cube/sphere) provided by FLAMEGPU.
(I'm currently travelling, won't be able to actually test that it works as
designed till later in the week)
…On Tue, 2 Jan 2024, 13:02 Daniele Baccega, ***@***.***> wrote:
Hello,
I'm having serious problems with agents scales. In the model I have
different types of agents that are rooms with the same height, with
different lengths and widths and a different rotation (0, 90, 180, 270
degrees).
I tried to use for example room_agt.setScaleYVariable(HEIGHT_OBJ);, where
HEIGHT_OBJ is the variable that represents the height of the room, but in
the visualisation I obtained rooms with different heights.
Moreover, I also tried to use room_agt.setModelScale(1.0f); ,
room_agt.setScaleXVariable(LENGTH_OBJ);,
room_agt.setScaleZVariable(WIDTH_OBJ);, and room_agt.setYawVariable(YAW);,
but in this way some rooms were aggregated in near (0, 0, 0) with a wrong
yaw.
I'm not understanding how the scales work. My obj has already the right
dimensions (e.g. height 3, length 5 and width 4).
Here you can find two screenshot:
Screenshot.from.2024-01-02.14-00-12.png (view on web)
<https://github.com/FLAMEGPU/FLAMEGPU2/assets/94167431/fde5a8aa-6c71-4f27-8f96-5d31f7b43963>
Screenshot.from.2024-01-02.14-00-24.png (view on web)
<https://github.com/FLAMEGPU/FLAMEGPU2/assets/94167431/f03712f0-bbd2-404d-b24d-6af536920a98>
Thank you!
—
Reply to this email directly, view it on GitHub
<#1167>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFVGCQEW47LJEHVH7BQ3WTYMQANJAVCNFSM6AAAAABBKAIMAKVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGAZDCNRWGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm having serious problems with agents scales. In the model I have different types of agents that are rooms with the same height, with different lengths and widths and a different rotation (0, 90, 180, 270 degrees).
I tried to use for example
room_agt.setScaleYVariable(HEIGHT_OBJ);
, where HEIGHT_OBJ is the variable that represents the height of the room, but in the visualisation I obtained rooms with different heights.Moreover, I also tried to use
room_agt.setModelScale(1.0f);
,room_agt.setScaleXVariable(LENGTH_OBJ);
,room_agt.setScaleZVariable(WIDTH_OBJ);
, androom_agt.setYawVariable(YAW);
, but in this way some rooms were aggregated in near (0, 0, 0) with a wrong yaw.I'm not understanding how the scales work. My obj has already the right dimensions (e.g. height 3, length 5 and width 4).
Is there a limit in the number of agents types? Because here we have two 'floors', with one 'floor', it works.
Here you can find two screenshot:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions