Hello,

> Hey experts, Does anybody know how to preload IVE models? I have a   
> large set of models in my app and it takes while to resize the   
> textures before retendering. So i am wondering if i could preload   
> all the models before rendering. Thanks Charles

First of all, I think Robert answered your question this morning:

http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/21461/focus=21472

Second, if you think the resizing is what is taking all your time, you  
can either pre-resize the textures as Daniel suggested or, if your  
video card supports non-power-of-two textures, you can run a node  
visitor that calls texture->setResizeNonPowerOfTwoHint(false) on each  
texture from the stateset of each node of your models, on load.

It's also possible that the resizing is not the real bottleneck and  
it's just the apparent problem because it prints a message to the  
console... You'll then have to find the real bottleneck.

J-S
-- 
______________________________________________________
Jean-Sebastien Guay     [EMAIL PROTECTED]
                         http://whitestar02.webhop.org/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to