Hi,

 

There should be some combination of options for the optimiser stuff in osgUtil that will let you merge geometries. This isn’t always possible (for example, if two nodes need wildly different renderer state, then there’s no way to merge them without the state being wrong when one is drawn) but if your models are fairly similar, it shouldn’t be a problem when you find the right settings.

 

By the way, it’s probably not the best idea to still be using geodes with modern OSG versions. osg::Drawable inherits osg::Node now, so you can put drawables directly into the scene graph like any other node.

 

Good luck,

 

Chris

 

From: OpenSceneGraph Users
Sent: 19 October 2020 15:59
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Merge geodes into a single node

 

Hi, Luca.  One cannot do this in a general way since under each node any kind of

entities can exist.

 

I think the task you want to do not possible in a generic way, unless

you get down to the level of the specific drawables each node has and

copy/transfer their contents (for example, if they are osg::Geodes, you

might do that with their drawables).

 

--

Alberto

 

_______________________________________________

osg-users mailing list

osg-users@lists.openscenegraph.org

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

 

--

You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscr...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/mailman.22744.1603119549.3538.osg-users-openscenegraph.org%40lists.openscenegraph.org.

 

--
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/4DB27FF7-421E-4ABF-8E81-F14BA7E2D2AB%40hxcore.ol.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to