Jump to content
  • Advertisement


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


OpenGL Surface texture generation in OpenGL

This topic is 6799 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

Hi, Can anybody point me in the right direction for getting OpenGL to produce the correct texture coordinates for a surface? ie I''m drawing a surface like this:- glMap2f( GL_MAP2_VERTEX_3, 0.0f, 10.0f, 4 * 3, 4, 0.0f, 10.0f, 3, 4, &circlePoints[0][0][0] ); glEnable( GL_MAP2_VERTEX_3 ); glEnable( GL_MAP2_TEXTURE_COORD_3 ); glMapGrid2f( stepLevel, 0.0f, 10.0f, stepLevel, 0.0f, 10.0f ); glEvalMesh2( GL_FILL, 0, stepLevel, 0, stepLevel ); Which is fine and dandy, but the texture on it repeats and I can''t seem to get control over it... I think I should be using the functions glTexGeni(...) and glTexGeniv(...) but I can''t persuade either of these to do what I want, ie lock the texture to the surface without tiling. Anyhelp would be appreciated. Game production: Good, quick, cheap: Choose two.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!