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

Reply via email to