Hey all,

My scene makes use of a *lot* of repeating geometry. The geometry is
either simple primitives (sphere, pyramids, etc) or osgText::Text.
These objects are duplicated many times and are
scaled/rotated/translated all over the scene. The objects need to have
differing colors and transforms, but other than that they have
identical geometry.

Is there any way I can use instances of the same geometry instead of
cloning them over and over again? I can parent the geometry nodes with
their corresponding transforms using the same instance, but I can't
set a different color. Just to try it out, I used instancing (with the
same color for everything) as opposed to cloning, and the time to
render the scene was cut by half (which is important in my application
since I'm targeting mobile). I'd appreciate any advice!


Regards,

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

Reply via email to