[osg-users] Best Practices and Switches

David Heitbrink david-heitbrink at uiowa.edu
Tue Apr 30 09:39:08 PDT 2019


I have some scenes with tons of osgSim::MultiSwitch's, I think for some of my scenes it can be in the low 1000s. For a scene these are typically setup once, and then rarely changed. From what I understand a lot of the optimize operations do not work across switches, which makes sense, I would think it would be hard to merge geometry with something that can change.

Since these switches rarely change, I was thinking about loading my switch options from a file, then just removing the switches, and attaching the selected child of the multi-switch to its parent. In general is this a solid approach, or is just setting "DataVariance" to static for the switch good enough?

Typically the object size under these switches are pretty small. Often times they are just 4 triangles.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75921#75921







More information about the osg-users mailing list