www.quadsoftware.com
FAQ  FAQ   Search  Search   Memberlist  Memberlist   Usergroups  Usergroups
Register  ::  Log in Log in to check your private messages


Post new topic  Reply to topic
 iObjectInstance::GetScale off by a factor of 100? « View previous topic :: View next topic » 
Author Message
cmusch
PostPosted: Sat Aug 04, 2007 2:02 pm    Post subject: iObjectInstance::GetScale off by a factor of 100? Reply with quote



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
View user's profile Send private message
ALicu
PostPosted: Sat Aug 04, 2007 7:20 pm    Post subject: Reply with quote



Joined: 12 Feb 2007
Posts: 1326

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
View user's profile Send private message
cmusch
PostPosted: Sun Aug 05, 2007 9:39 am    Post subject: Reply with quote



Joined: 02 Aug 2007
Posts: 33

Well I thought so Smile But I think this really is something worth documenting.

regards
chris
Back to top
View user's profile Send private message
ALicu
PostPosted: Sun Aug 05, 2007 10:01 am    Post subject: Reply with quote



Joined: 12 Feb 2007
Posts: 1326

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Based on a template by Dustin Baccetti
Powered by phpBB © 2001, 2005 phpBB Group