| Author |
Message
|
| cmusch |
Posted: Sat Aug 04, 2007 2:02 pm Post subject: iObjectInstance::GetScale off by a factor of 100? |
|
|
Joined: 02 Aug 2007 Posts: 33
|
Hi!
When reading the scale of an object (linked to a terrain zone) via iObjectInstance::GetScale(), I get values that are off by a factor of 100 from the values displayed in the GUI (Transform->Basic Transformation->Scale).
What could be the reason for that?
thx
chris |
|
| Back to top |
|
 |
| ALicu |
Posted: Sat Aug 04, 2007 7:20 pm Post subject: |
|
|
Joined: 12 Feb 2007 Posts: 1259
|
Hi,
In the UI we keep % values (since these are more user friendly), while in the SDK the values are the mathematical transformation. So in the UI 100 means 100% size while in the SDK it is 1 (unscaled).
Regards,
Adrian L. |
|
| Back to top |
|
 |
| cmusch |
Posted: Sun Aug 05, 2007 9:39 am Post subject: |
|
|
Joined: 02 Aug 2007 Posts: 33
|
Well I thought so But I think this really is something worth documenting.
regards
chris |
|
| Back to top |
|
 |
| ALicu |
Posted: Sun Aug 05, 2007 10:01 am Post subject: |
|
|
Joined: 12 Feb 2007 Posts: 1259
|
| Yes, we will update the docs. We've taught that artists always considered scale as a % thing while programmers think of it as a mathematical transformation. But you are right, better to have it documented. Thanks for pointing that out. |
|
| Back to top |
|
 |
|
|