Hi Dave, The OSG allows you to share subgraphs between multiple parents - in your case it'd multiple Transform nodes, so yes you can do what you are intending to do.
However, you mention that you want to create millions of instances and in this case your approach will be inappropriate as the CPU and GPU costs of dealing with millions of nodes/drawables would be prohibitive. If you want to scale your scene up that much you will have to implement a more advanced technique. Unfortunately this will mean you'll need to learn more about using advanced OpenGL features such as geometry instances and shaders. Given you'll have to dive into some more advanced topics to achieve what you want it would probably be worth working up to it rather than trying to solving everything at once. Perhaps you can example in higher level terms what you are attempting to do and your background experience, your target OS/hardware and then others will hopefully be able to point your along the appropriate path. Robert. On Fri, Apr 16, 2010 at 2:04 AM, Dave Sawyer <[email protected]> wrote: > Hi, > > I am extremely new to OSG (as in it built and I got a small application to > draw a 2D box). What I am really trying to figure out is if it will suite my > needs or not. This is probably an extremely elementary question; but through > the tutorials and documentation I have not been unable to find an answer. > The question is, can I define a model (ShapeDrawable I believe it would be) > just one time and have the same model drawn many times, just with a different > transformation (so in different places) without duplicating the model in a > osg::Group? I potentially need to draw millions of identical models and I > won't be able to afford the memory to duplicate the vertices of the model > that many times. > ... > > Thank you! > > Cheers, > Dave > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=26884#26884 > > > > > > _______________________________________________ > 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

