Hi all,
I am trying to improve our scene graph layout for some of our data, and
my first step is to improve our use of osgconv with various optimizer
settings. We've been using it for a while but never really examined the
results to see if it was doing what it was supposed to.
Starting with a really simple object, I have some parts that need to
stay separate (in terms of nodes and textures) so I have marked them as
DYNAMIC, and the rest I have marked as STATIC. These are all under a
single Group. There are 8 geodes and 8 geometry there, using about 4
different textures among them.
Then, I set OSG_OPTIMIZER=MERGE_GEODES MERGE_GEOMETRY
TEXTURE_ATLAS_BUILDER abd run osgconv with -O "OutputTextureFiles" to
optimize the model.
I was expecting the 8 geodes and 8 geometry to become a single geode and
geometry pair, and a single texture atlas to be created for the
textures. First, two atlases were created, this I think I've found why
(there's a maximum size and a margin is used to make sure the image
doesn't bleed to the other side). I'll try to tweak the settings to get
what I want in this case.
But there are two other problems in the result:
1. there are 4 geodes and 4 geometry instead of 1 and 1.
2. it didn't include two of the textures in the atlas.
I can't figure out from the code why it's not merging all the geodes and
geometry together, and why it's not including two textures in the atlas.
In the model itself, nothing really sticks out as being different
between the geodes/geometry that were merged and those that weren't (and
ditto for the textures that were included in the atlas and those that
weren't).
Are there any guidelines to make sure the result is optimal? Or are
there criteria I should know about to be able to get the results I want
(other than dataVariance)?
Thanks in advance,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org