Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / UV mapping coords quick question...

Author
Message
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 10th Aug 2011 00:33
UV coords go from 0.0 to 1.0 normally. If I changed a U or V value to 2.0 would this double the texture over the surface?

Warning! May contain Nuts!
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 10th Aug 2011 02:06 Edited at: 10th Aug 2011 02:10
if you are sampling with Wrap address mode, yes, you will have a tile, and if you sample with the Mirror address mode, you will have a tile, but it's mirrored in every tile, for the Clamp mode, all coordinates outside 0,1 range will be wrapped to be either 0 or 1, for the border address mode, coordinates outside 0,1 range will have a color specified as the border color in the sampler, though, i only know about Direct3D11 samplers, but i believe it's the same thing in Direct3D9, either have it defined in a the shader, or (Direct3D9 only) do it using the IDirect3DDevice9

WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 10th Aug 2011 02:52
@Hassan - Thank you... Been googling but nothing as clear as you've put it...

Warning! May contain Nuts!

Login to post a reply

Server time is: 2024-11-19 08:35:36
Your offset time is: 2024-11-19 08:35:36