I draw a rect tunnel using Mesh, It all works well. What is the problem is:How can i align its texture with the tunnel.For example, when the tunnel turns off, the texture i assigned does turn at all by using codes like this:
uvs[i] = vertices[i];
And here are two pictures, the first one is the wrong one. and the second is what i want.
![alt text][1]
pic 1
![alt text][2]
pic 2
The next two pictures may be more clear.
![alt text][3]
pic3 Look at the small green arrow,i wanna the texture align with it not the red one on its left.
![alt text][4]
Pic4 this is what i want
Hope that it's clear.Any answer will be appreciate!
[1]: http://en.gravatar.com/userimage/24104274/8d2c48ddf4b6c066ec4b0e1d18dca691.jpg?size=200
[2]: http://en.gravatar.com/userimage/24104274/6c00be89e3561d2f8b48eb3b97890202.jpg?size=200
[3]: http://en.gravatar.com/userimage/24104274/9c3b10ffd7ad897e6c666bc904337773.jpg?size=200
[4]: http://en.gravatar.com/userimage/24104274/17d2b9a0aaeb134aac159f4dde907b4f.jpg?size=200
↧