Re: [PyOpenGL-Users] gluBuild3DMipmaps
Brought to you by:
mcfletch
From: Andrew W. <and...@al...> - 2007-02-12 12:09:07
|
Hey Jon, Would you mind sharing your GLSL shaders program? Also, I seemed to have cleared up my 3d texture problem by installing glewpy, don't know why this fixed it but it just started working... Thanks Andrew On 2/11/07, JoN <jo...@we...> wrote: > > > Ah, you are another poor fool like me, interested in 3D textures. > Their support is extremely patchy across different drivers (then there is > the > _vtc compression issue too!). > > Sorry I realize this email isn't particularly helpful but be warned: 3D > textures > are another world of pain/can of worms again in terms of getting access to > them, > you have another hill to climb! > > I'm doing some stuff at the moment that is working, using GLSL shaders and > 2D > textures that pretend to be 3D textures (eg. one 512x512 2D texture can > contain > 64 (that's 8x8 squares) x 64texel-by-64texel squares, so you can have a 3D > texture that is 64 slices deep, with each slice a 64x64 texture). This > turns > out to be very quick if you program your fragment shaders right and use > the > built-in stuff (I'm on Nvidia), plus you get the added advantage that 2D > textures and 2D texture _compression_ is fully supported everywhere with > no ifs > or buts. > > More fud for thot. > > Jon > > > Quoting Andrew Wilson <and...@al...>: > > > Hello, > > Great hack, got it working no problem now. One side question, > > gluBuild3DMipmaps works without a hitch, but when I call > bool(glTexImage3D) > > I get "False" back. glGetString(GL_VERSION) returns 2.0.1 so supposedly > > teximage3d is supported on gl > 1.2. Am I missing something here? > > Thanks > > Andrew > > > > > > On 2/9/07, Mike C. Fletcher <mcf...@vr...> wrote: > > > > > > Andrew Wilson wrote: > > > > Hello, > > > > I found a newer glu version compiled for win32. Unfortunately > winxp > > > > has a file protection scheme that won't allow me to overwrite > > > > glu32.dll with the newer version. Is there a way to force pyopengl > to > > > > use different dll's? > > > There is, though it feels a bit hacky and has AFAIK never been tested. > > > Here's an example where I make the GLU DLL a completely unrelated > > > library (so there will be no GLU functionality at all): > > > > > > >>> import ctypes > > > >>> glu = ctypes.CDLL( '/usr/lib/libFLAC.so' ) > > > >>> platform.GLU = glu > > > >>> from OpenGL.GLU import * > > > >>> gluGetString > > > <OpenGL.platform.gluGetString object at 0x2aaaabc82f10> > > > >>> gluGetString( GLU_VERSION ) > > > Traceback (most recent call last): > > > File "<stdin>", line 1, in <module> > > > File > > > > "/var/pylive/src/OpenGL-dev/OpenGL-ctypes/OpenGL/platform/__init__.py", > > > line 186, in __call__ > > > self.__name__, self.__name__, > > > OpenGL.error.NullFunctionError: Attempt to call an undefined function > > > gluGetString, check for bool(gluGetString) before calling > > > > > > (You will need to use WinDLL, not CDLL for win32). You may want to > use > > > OpenGL.platform.ctypesloader.loadLibrary( ctypes.windll, > > > path_to_your_library ) instead of the bald ctypes operations, as older > > > ctypes versions should be supported with that function. > > > > > > Good luck, > > > Mike > > > > > > > > > > > On 2/8/07, *Andrew Wilson* <and...@al... > > > > <mailto:and...@al...>> wrote: > > > > > > > > Hey Mike, > > > > You hit the nail on the head, my version of GLU is '1.2.2.0 > > > > <http://1.2.2.0> Microsoft Corporation'. This may be a silly > > > > question, is there any way to update glu to 1.3 on win32? > > > > Thanks > > > > Andrew > > > > > > > > > > -- > > > ________________________________________________ > > > Mike C. Fletcher > > > Designer, VR Plumber, Coder > > > http://www.vrplumber.com > > > http://blog.vrplumber.com > > > > > > > > > > > > > -------------------------------------------------------------------- > Come and visit Web Prophets Website at http://www.webprophets.net.au > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > |