Re: [osg-users] Image formats, most efficient?

2013-04-22 Thread csdfsdf
finally, smomeone solve my problem  thakx

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Image formats, most efficient?

2011-10-13 Thread Thomas Lerman
Thank you very much for the information . . . I will then use .osgb since that 
seems to be the best and most efficient.

I was trying to simplify with the "--simplify n" parameter in osgconv. If I do 
anything other than '1' (do not simplify), even 0.99, osgviewer crashes trying 
to display the result. So, it does some like it messes up one or more of the 
objects.

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Image formats, most efficient?

2011-10-13 Thread Jason Daly

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


[osg-users] Image formats, most efficient?

2011-10-13 Thread Thomas Lerman
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?

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.

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?

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org