Re: [PyOpenGL-Users] gluBuild3DMipmaps
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2007-02-08 17:37:25
|
Andrew Wilson wrote: > Hello, > I'm trying to use gluBuild3DMipmaps, but I come upon the following > error message, > > OpenGL.error.NullFunctinoError: Attempt to call an undefined function > gluBuild3DMipmaps, check for bool(gluBuild3DMipmaps) before calling. > > > So I print out bool(gluBuild3DMipmaps) and of course get False. how > do I get gluBuild3DMipmaps working? I'm running > pyopengl-3.0.0a5-py2.4.egg "gluBuild3DMipmaps is only available if the GLU version is 1.3 or greater", mostly likely the system on which you are running has a GLU version less than 1.3. >>> from OpenGL.GLU import * >>> gluGetString( GLU_VERSION ) '1.3' >>> gluBuild3DMipmaps <CFunctionType object at 0x2aaaab8c8a78> >>> Or it could be that you're running on a platform that has some strange semantics surrounding access to GLU features for versions > 1.0. Above session is from a modern Linux desktop. Good luck, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |