1. For texture mode:
For a material layer, I want to set texture wrap mode in u and v direction with different values, how to do? currently, seems must set to same value, because no method to specify which direction should be changed.
2. For texture direction:
In OpenGL, if I set a rectangle's texture coordinate with following value, then, the texture is OK, but in Irrlicht, the texture upside-down:
lower-left: (0,0)
lower-right: (1,0)
upper-left: (0,1)
upper-right: (1,1).
If I want fix this problem, I must change my texture coordinate?
thanks.
texture wrap mode and texture direction
-
hybrid
- Admin
- Posts: 14144
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Sorry, I guess I forgot to finalize the U/V separate wrap mode last time I worked on it. But I guess I have it somewhere on my disk. I'll try to fix this and add to Irrlicht 1.7 version.
The texture coords in Irrlicht use the DirectX order, which usually means that things are flipped when transferring native OpenGL code into Irrlicht. I guess we should improve the docs on these things a little bit.
The texture coords in Irrlicht use the DirectX order, which usually means that things are flipped when transferring native OpenGL code into Irrlicht. I guess we should improve the docs on these things a little bit.