Sign in to follow this  
zed_padawan

[Q] lesson 10 texture u v values

Recommended Posts

zed_padawan    127
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
zed_padawan    127
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
zed_padawan    127
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this