Re: [PyOpenGL-Users] I'm incapable of mapping a texture, in my small test.
Brought to you by:
mcfletch
From: Black <py...@bl...> - 2007-06-22 13:55:13
|
Well, textures certainly do work in PyOpenGL, so it isn't just the call to glGenTextures() that is the problem. It would be helpful to see more of the code that is failing, but my suspicion is that you are calling glGenTextures() before the OpenGL context has been initialized... On Jun 21, 2007, at 2:09 PM, Laurence Penney wrote: > I cannot get textures to work in PyOpenGL (Mac OS 10.4 with PyObjC). > > I think the problem is bogus results from glGenTextures(), as in this > example: > > IDs = glGenTextures(10) > print IDs > > (3356347L, 0L, 3343296L, 249236L, 25816960L, 25817200L, 25816660L, > 0L, 3263844L, 0L) > > I previously wrote an OpenGL program in Objective C. There > requesting 10 > values reliably gives me the nice sequence: > > 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 > > I believe all the values returned in PyOpenGL, including 0, are bogus. > Duplicate results don't make sense either. Certainly they don't > work, and > nor do textures work if you force a bind to 1 or 2, etc. > > -- Laurence > > > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users |