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
 About UV offset. « View previous topic :: View next topic » 
Author Message
takuhiro
PostPosted: Fri Jul 30, 2010 9:43 am    Post subject: About UV offset. Reply with quote



Joined: 02 Dec 2009
Posts: 29

Hi.

I put the texture on terrain.
When the offset is set, the ranges are from 0 to 1000 ?
Back to top
View user's profile Send private message
ALicu
PostPosted: Sun Aug 01, 2010 2:49 pm    Post subject: Reply with quote



Joined: 12 Feb 2007
Posts: 1326

Hi,

The offsets are in world units (the mapping is offset on U or V so the texture is moved with certain world units). The range can be negative or positive and i believe that the range is set to -10000000000 to 10000000000 in the control.

Regards,
Adrian L.
Back to top
View user's profile Send private message
takuhiro
PostPosted: Tue Aug 03, 2010 1:42 am    Post subject: Reply with quote



Joined: 02 Dec 2009
Posts: 29

It is not a value that can be input but it is a looping value.
The texture seems to have looped by the value from 0 to 1000.

Offset 0
**o**
*ooo*
**o**

Offset 500
****o
o**oo
****o

Offset 1000 = Offset 0
**o**
*ooo*
**o**
Back to top
View user's profile Send private message
ALicu
PostPosted: Tue Aug 03, 2010 7:20 am    Post subject: Reply with quote



Joined: 12 Feb 2007
Posts: 1326

Hi,

Yes, after I checked the code more I've found that you are right.

Basically, internally the offset is in texture space (between 0..1, values over 1 or under -1 are just repeating the same effect as those between -1 and 1). But letting the user introduce values between 0 and 1 in the UI is cumbersome. So instead the values are multiplied with 1000. So by introducing values between 0 and 1000 you can finely control the offset.

To be noted that in SDK the values are correctly reported between 0 and 1.

All these behavior should be explained in the help. I will check that and if it is not we will update the help.

Regards,
Adrian L.
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