texture wrap mode and texture direction

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
lab_zj
Posts: 26
Joined: Wed May 21, 2008 3:25 am

texture wrap mode and texture direction

Post by lab_zj »

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.
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

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.
lab_zj
Posts: 26
Joined: Wed May 21, 2008 3:25 am

Post by lab_zj »

thank you very much, i will try to fix it in my code temporarily, and wait for v1.7 release.
Post Reply