Hi Leo, There isn't any OSG mechansim designed to help you determine this, so you'll have to produce your own metrics by writing a NodeVisitor to traverse through the scene and collate sizes of objects. This isn't trivial to do completely.
I wonder if there is another route, perhaps you could implement a streambuffer than just eats bytes, not writing them to disk, but counts the bytes as they come in. You'd attach the stream buffer to an istream as then pass this to the appropriate plugin. Again this isn't a trivial thing to code, but you'll sure learn more about C++ and OSG in the process :-) The later technique will be 100% accurate of course, so this is the route to go. Have a look at the osgDB::Archive implementation in src/osgDB/Archive.cpp and src/osgPlugins/osga for an example of custom streambuffer, the .net plugin also has an example. Robert. On 10/31/06, Leo Orlandini <[EMAIL PROTECTED]> wrote:
Hi I need to find a way to estimate the size that a Group node should require on disk if It's saved in a file as a Proxy node...does anyone know a way to do this? I've found only method for doing this for image... thanks in advance Leo _________________________________________________________________ Aggiungi i tuoi nuovi contatti di Hotmail anche in Messenger.Con un click! http://join.msn.com/hotmail/features-std#6 _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
