On 10/13/2011 05:58 PM, Thomas Lerman wrote:
It appears the native OSG formats include:
a) Text formats: .osg& .osgt
b) Binary formats: .osgb& .ive
I know the text formats are much larger and slower to load. In my case, the
binary formats are exactly the same size. So, I am curious what the differences
specifically between the binary formats?
The .ive format was the original binary format for OSG. It is not
extensible, so the binary format must be altered as new objects are
added. The .osgb format is a newer, extensible format that makes use of
serializers to store OSG objects in the file. All three formats .osgt
(text), .osgb (binary), and .osgx (XML) use the same serializers, so the
newer extensible formats are easier to maintain.
What is the fastest format to load& manipulate (really only scale, orient,&
translate)? I would presume that one of the OSG native binary formats would be the best
to use.
Correct, the native binary formats will be much quicker to load than any
other format. It's probably a toss-up between .ive and .osgb at this
point. The .osgb format is the way forward, though a lot of people
still use .ive.
I realize my model is quite complex, so I am using osgconv to convert and
reorient it. I tried scaling and compressing, but neither had an effect to the
size. When I tried simplify, it did reduce the file size, but osgviewer crashes
when I try to view the resulting image. Am I doing something wrong or is the
model just too complex?
In general, scaling isn't going to reduce the size of the file.
Compressing it (with zip or gzip, for example) will probably make the
file smaller, but you'll have to decompress it to use it, even if you
use the .zip plugin to decompress it into memory.
In general, simplifying the model will reduce the overall size of the
file. You don't say how you went about simplifying it, so I can't
really determine why that's causing a crash. It sounds like the
simplification process caused one or more of the objects in the
resulting file to be invalid.
--"J"
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org