Hi,

in the last few days, I've been getting into OSG programming and I
repetedly feel that the code needs a lot more documentation. Maybe
this has been said before, I don't know. Crucial classes and functions
just lack any explanation about what they do and how to use them.
Often times, there are no tutorials and even if there is one, it's as
sparse as the doxygen-generated docs.

Example: The Optimizer. This is what the class description says:

"Traverses scene graph to improve efficiency. See OptimizationOptions.
For example of usage see examples/osgimpostor or osgviewer."

When I check the OptimizationOptions, I can see them but there's no
precise explanation what they actually do. I can only guess. Then I
check osgimpostor and the code never even uses the Optimizer. Great.
Then I check osgviewer and all it does is this:

optimizer.optimize(loadedModel.get());

No Optimizer tutorial was found. Hmm... It doesn't make it easy for
OSG beginners to get into it. Anyways, here's my question then:

-I want to completely flatten my scene so there are no transforms anymore.
-This also means that if there are mutiple Geode instances but with
different transforms, they need to be duplicated.
-Every vertex should be in its final place.
-Ideally, it should all be one Geode (if that's possible at all).

I have a feeling (!) that some of these OptimizationOptions may
achieve that but I can never be sure. Can anybody let me know if that
is so? And if it is, what are the options I have to use?

Rick
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to