Hi Charles,

The osgUtil::GLObjectsVisitor is used for compiling objects in the
scene graph.  It's automatically called by osgViewer on the first
frame that the viewer is run.  If you are adding a scene graph later
on then all you need to do is use a Camera pre draw callback that uses
the GLObjectsVisitor to compile everything, then once its done remove
the callback.

Robert.

On Jan 15, 2008 2:30 AM, Charles Han <[EMAIL PROTECTED]> wrote:
>
>
> Hello, All,
>
> I want to preload models' textures before the models are visible in my
> application because when loading these textures, even though i enabled NPOT,
> the application freezes for a while.
> This is probably an old question but i really need a bit more details on it.
> i found some solutions like using osg::Camera pre draw callback but i could
> not find any examples related to.
>
> If anyone could give me an example, I'll appreciate it.
>
> Thanks
>
> Charles
>
> _______________________________________________
> 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

Reply via email to