Archived

This topic is now archived and is closed to further replies.

glTexGen problem

This topic is 5652 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In my game I use automatic texture coordinate generation to draw a wall. Because the wall is on not even ground I just want to create the s coordinate automatically. I did it exactly like the red book told me: glTexGeni(GL_S,GL_TEXTURE_GEN_MODE,GL_OBJECT_LINEAR); const float texGenS1[4]={SOME_CONSTANT,0.0,0.0,0.0}; glTexGenfv(GL_S,GL_OBJECT_PLANE,texGenS1); It works fine on my system (Riva TNT graphics card) but I tried it today on a system with some ATI graphics card and there both coordinates were created automatically or (on the upper part of the wall) my assignments for the t coordinate were completely ignored. Because it''s hard to imagine here are some screenshots My system: http://balour.sourceforge.net/screenshots/shot5.jpg The ATI system: http://balour.sourceforge.net/screenshots/tex_bug.jpg I don''t know what''s wrong with it. Thanx Konstantin Schauwecker

Share this post


Link to post
Share on other sites

Most likely a driver bug or simply not supported.

Try updating the ATI drivers, or maybe contact ATI (or the cards manufacturer) as to whether it is supported.

Share this post


Link to post
Share on other sites