Hi Frank I would do a search of the OSG mail archives, your questions have been answered several times and within the last few days
The blip you see is that your textures are downloaded to OpenGL the first time they are drawn in the visible frustum . Again there is a solution in the mail archives Simply do a google 'OSG share textures' or google 'OSG scale textures' etc... ____________________________________________________________________________ __ Gordon Tomlinson [email protected] IM: [email protected] www.vis-sim.com www.gordontomlinson.com www.PhotographyByGordon.com ____________________________________________________________________________ __ -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Frank Sullivan Sent: Wednesday, October 13, 2010 12:18 AM To: [email protected] Subject: [osg-users] Some texture questions Hi, I just have some basic questions about textures, and I was hoping someone might have an answer to them: 1) Right now, I have several objects that refer to the same texture file. Is there any way to make sure that these objects, when loaded, share the same texture object in memory, rather than loading the same texture multiple times? 2) It seems as though the system might use a sort of lazy loading scheme for the textures. I'm not 100% sure about this, but when I first load my scene and move the camera around, I notice that there is a frame rate hitch whenever an object is being displayed for the first time. Once I've viewed all the objects at least once, then there are no more hitches. I could be wrong, but I also noticed that some of these objects have non-power-of-two textures, and these hitches correspond with a console message that says "Scaling image x from (800,800) to (1024,1024). So, that's why I suspect that maybe the textures are being loaded when they first appear, rather than when the model is loaded. If so, can this be turned off? Thank you! Cheers, Frank ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32674#32674 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

