[Q] lesson 10 texture u v values

Started by
1 comment, last by zed_padawan 17 years, 12 months ago
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.
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!

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

This topic is closed to new replies.

Advertisement