Hi Tim, glTextImage3D extension set up is a bit of sticky topic with GLU. I don't think the existing GLU code will even handle the use of multiple context under Windows as the function entry points can change per context. The OSG handles this so I'm inclined to tweak the glu API so that we can pass in the function point to glTextImage3D and then get Texture3D.cpp to pass this in. I expect when doing this I'll be able to remove all the extension setup code from mipmap.cpp and avoid the issue you've seen.
I'll see if I can fix in now and get it checked in. Robert. On Fri, Oct 8, 2010 at 11:01 AM, Tim Moore <[email protected]> wrote: > The GLU changes wouldn't compile for me on Fedora 12 with the NVidia header > files and libraries. I don't know if there's some magic in other > distributions that #defines GL_GLEXT_PROTOTYPES or what, but I don't have > it. However, the symbol glTexImage3D is defined in the OpenGL library. So I > added the prototype directly in mipmap.cpp. > Tim > > On Wed, Oct 6, 2010 at 10:27 PM, Jean-Sébastien Guay > <[email protected]> wrote: >> >> Hi again, >> >>> OK, mipmap.cpp now compiles. Doing a full build and install now. >> >> Built and installed fine, and osgviewer with a few models from osg-data >> seems OK. >> >>> Is there anything I can test to see if the new code is working? I guess >>> anything that generates mipmaps will be using that code? >> >> Doing osgviewer lz.osg, it seems like the terrain texture is mipmapped >> correctly (I can see "min_filter LINEAR_MIPMAP_LINEAR" in lz.osg for texture >> lz.rgb). I also tried turning useHardwareMipMapGeneration to false, and the >> texture still seems mipmapped to me. I guess that's the case where the new >> osg/glu code should be used in my build? >> >> Is there anything else I can test to see if the new code is working as >> intended? >> >> J-S >> -- >> ______________________________________________________ >> Jean-Sebastien Guay [email protected] >> http://www.cm-labs.com/ >> http://whitestar02.webhop.org/ >> _______________________________________________ >> osg-submissions mailing list >> [email protected] >> >> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
