Archived

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

Lesson 35 - avi player, Texture Binding Issues

This topic is 5146 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 I''m currently having binding issues with textures in openGL, using Lesson 35 "playing avi files in OpenGL" I''m finding if i don''t bind the texture i''m loading the new frame from the avi file ok. However it writes over other textures in my scene. Also if i try to bind these textures my app crashes. Just wondering if anyone has had similar behaviour. Otherwise does anyone know of a good online resource regarding best practice for using openGL textures eg when to enable/disable/bond etc .. wihout getting into trouble. Cheers.

Share this post


Link to post
Share on other sites
found bug

i wasn''t generating a name for a new video texture,
with

glGenTextures(1, &texture);

The Lesson doesn''t do this.

So i''m guessing if you don''t generate this name
openGL by defualt writes over all textures of the same type
or atleast that was the behaviour i was getting.

Share this post


Link to post
Share on other sites