<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-GB link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Good luck,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Chris</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>From: </b><a href="mailto:osg-users@lists.openscenegraph.org">OpenSceneGraph Users</a><br><b>Sent: </b>19 October 2020 15:59<br><b>To: </b><a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br><b>Subject: </b>Re: [osg-users] Merge geodes into a single node</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi, Luca. One cannot do this in a general way since under each node any kind of</p><p class=MsoNormal>entities can exist.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I think the task you want to do not possible in a generic way, unless</p><p class=MsoNormal>you get down to the level of the specific drawables each node has and</p><p class=MsoNormal>copy/transfer their contents (for example, if they are osg::Geodes, you</p><p class=MsoNormal>might do that with their drawables).</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>-- </p><p class=MsoNormal>Alberto</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>_______________________________________________</p><p class=MsoNormal>osg-users mailing list</p><p class=MsoNormal>osg-users@lists.openscenegraph.org</p><p class=MsoNormal>http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>-- </p><p class=MsoNormal>You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.</p><p class=MsoNormal>To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe@googlegroups.com.</p><p class=MsoNormal>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.</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/4DB27FF7-421E-4ABF-8E81-F14BA7E2D2AB%40hxcore.ol?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/4DB27FF7-421E-4ABF-8E81-F14BA7E2D2AB%40hxcore.ol</a>.<br />