Hi Pau,

Maybe you can make use of Geometry Instancing, take a look at
osgdrawinstanced example. I've make use of instanced rendering to draw a
large amount of cubes and spheres.

Hope it helps.

2012/5/29 Pau Estalella <[email protected]>

> Hi,
>
> Can anyone point me to some example or provide some advice on how to
> structure a
> scene with a low poly object replicated thousands of times, at different
> orientations and positions? Each instance can be in one of the several
> states
> that the object can be, using an osg::Switch. The state of each instance
> changes
> independently of the others.
> I think osg::PositionAttitudeTransform for each instance is not an option,
> as it
> kills culling performance. Replicating the geometry and transforming the
> vertices seems a little bit wrong, and a total memory waste.
> Any ideas?
>
> Thank you very much.
>
> Cheers,
> Pau
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=47912#47912
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to