Hello Michael,

Michael Raab wrote:
> we're using osg binary format to save some of our geometries. Worked fine up 
> to now. We're attaching some voidP attachments to assign some more 
> information. It seems that these voidP's are saved to osg as well. 
> That is not what we need. Is there a way to hinder OpenSG from writing these 
> voidP's to file? (Removing all voidP's before writing is not an option for us 
> ;) )

no, there is no direct way to omit certain types from being written out. 
You could write and register a class that takes responsibility for 
writing out VoidPAttachments, but does not really write anything (or 
perhaps a dummy value) and on read back simply does nothing. You can use 
OSGNFIOGenericAtt.{cpp,h} as an example for another type of attachment 
that get special handling instead of using the generic code path.

Another alternative is to make a pass over the scene after loading and 
just remove all the VoidPAttachments, not very nice, but it should work.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to