Jump to content
  • Advertisement
Sign in to follow this  
maochenhappy

OpenGL How to do multi-texturing and tesselation together?

This topic is 3791 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, This is the first time that I post the question here. Please point me a direction for the question below. Thanks in advance! I'm trying to do dot3 bump mapping using OpenGL, where the multi-texturing function is used: glMultiTexCoord2fARB(GLenum texUnit, TYPE coords) At the same time, I need to tesselate the textured polygon to render ploygons with holes inside. In this case, I need to use: gluTessVertex(GLUtesselator* tessobj, GLdouble coords[3], void * vertex_data) However, I can't find a way to do both together. I can't find a way to fit the glMultiTexCoord2fARB(...) function in the GL tesselation routine and vice versa. Anyone had the similar problem before or has the ideas to get around it? I have an urgent dealine to meet and must sort this out soon. Any comments will be really appreciated. Many thanks, Chen

Share this post


Link to post
Share on other sites
Advertisement
Appologised for posting this topic in separate threads:P

I'm trying to integrate the
glMultiTexCoord2fARB(GLenum texUnit, TYPE coords) function in the vertexCallback(GLvoid *vertex) function and try to store all vertex, texture, and colour information in vertex data structure. Hope it works.

Anyone has any other ideas to figure it out? Thanks:)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!