Original Post
Greetings!
I have a weird problem with texture wrapping.
I''m using DX 8.1 SDK, but DX 9.0 is installed (I think it shouldn''t be a problem). I program in VC++. I haven''t installed the debug runtimes with the SDK of course.
The problem:
I enable texture wrapping in both U and V direction, because I draw a torus (with a single triangle strip). Everything is OK, except those triangles which don''t have neighbouring triangles on the 0.0-1.0 side. Those triangles aren''t textured properly, the texture isn''t wrapped.
For example:
buggy triangle''s texture coordinates ( (0.1,0.9),(0.1,0.0),(0.3,0.0) )
neighbouring triangle ( (0.1,0.0),(0.3,0.0),(0.3,0.1) )
When the second triangle is displayed, wrapping is OK. When the second disappears, wrapping does not occur.
What do I do wrong?
Are there any special sequence in setting render states, textures, shaders?
I discovered another weird thing. When I output the same texture coordinates to oT1 (after oT0) but I don''t load it in the PS, texture wrapping is disabled. So the only difference is the mov oT1,v2 line added in the VS, PS remains the same.
I have an ATI 8500LE card, if it helps.
Thanks