Jump to content
  • Advertisement
Sign in to follow this  
zed_padawan

[Q] lesson 10 texture u v values

This topic is 4439 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, I have a question regarding the u v texture values in your world.txt map. How did you deterrine these values? // Floor 1 -3.0 0.0 -3.0 0.0 6.0 -3.0 0.0 3.0 0.0 0.0 3.0 0.0 3.0 6.0 0.0 -3.0 0.0 -3.0 0.0 6.0 3.0 0.0 -3.0 6.0 6.0 3.0 0.0 3.0 6.0 0.0 if x y z = -3.0 0.0 -3.0 how did you get the u and v components (0.0 6.0)? thanks.

Share this post


Link to post
Share on other sites
Advertisement
hi,

I figured it out. I plotted this on a piece of paper. With xyz and uv values on the same grid. The mapping looks like this for the floor in lesson 10.

// floor space
xmin = -3
xmax = 3
zmin = -3
zmax = 3

// texture space
umin = 0
umax = 6
vmin = 0
vmin = 6


umin, vmax umax, vmax
-z
+-------+-------+
| | |
| | |
-x +-------+-------+ x
| | |
| | |
+-------+-------+
Z
umin, vmin umax, vmin

thanks!

Share this post


Link to post
Share on other sites
Hopefully, this html won't get the spaces stripped.
Partial re-post.

thanks.



umin, vmax umax, vmax
-z
+-------+-------+
| | |
| | |
-x +-------+-------+ x
| | |
| | |
+-------+-------+
z
umin, vmin umax, vmin

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!