Jump to content
  • Advertisement


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

The Wishmaster

TGA Texture Mapping(L34)

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

I dunno if i can describe the problem so that anyone can figure out what went wrong. Well knowing Lesson34 should help. My main Programm is calling an Object to create a simple Display List of a cube: GLuint cube = DLists.SimpleCube(GLfloat radius, char * TextureFileName); Then SimpleCube calls an Object to load textures: GLuint TexID = TexMan.LoadGLTexture(TEXTURE Texture); LoadGLTexture will return the texID. then SimpleCube maps the Texture: glBindTexture(GL_TEXTURE_2D, TexID); I am loading the Textures by creating the Display Lists(see above) in reverse order(tex4, tex3, tex2, tex1). But i am displaying them in right order: glCallList(cube1); glCallList(cube2); ... The result is that all Objects are displayed with the Texture of cube1. Changing the loading order didnt move anything, but if I call glCallList(cube2) first, all the Objects are mapped with the Texture of cube2... Does that sound stupid and impossible to you too? Please dont give answers like: "in line ... there is a syntax error." cause this isnt the original code. If anyone wants to see the full code post me your e-mail address

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!