Hello Theodore, On 01/20/2011 01:42 PM, Hall, Theodore wrote: > I read a ".wrl" file with: > > OSG::NodeRefPtr file_root = OSG::SceneFileHandler::the()->read ( > filename[i]->c_str()); > > Everything is OK. I write an ".osb" file with: > > OSG::SceneFileHandler::the()->write ( > file_root, binary_filename.c_str(), false); > > OK. > > On a subsequent run, I read the ".osb" file with: > > OSG::NodeRefPtr file_root = OSG::SceneFileHandler::the()->read ( > filename[i]->c_str()); > > The scene loads OK, but there are many warnings from OpenSG. It seems > that the ".osb" file contains all of the original VRML fields, and the > loader complains about all of them: > > WARNING: OSBCommonElement::readFieldContent: Skipping unknown field [ccw] > [SFBool]. > WARNING: OSBCommonElement::readFieldContent: Skipping unknown field > [colorIndex] [MFInt32]. > WARNING: OSBCommonElement::readFieldContent: Skipping unknown field > [colorPerVertex] [SFBool]. > WARNING: OSBCommonElement::readFieldContent: Skipping unknown field [convex] > [SFBool]. > WARNING: OSBCommonElement::readFieldContent: Skipping unknown field > [coordIndex] [MFInt32]. > WARNING: OSBCommonElement::readFieldContent: Skipping unknown field > [creaseAngle] [SFReal32]. > WARNING: OSBCommonElement::readFieldContent: Skipping unknown field > [normalIndex] [MFInt32]. > WARNING: OSBCommonElement::readFieldContent: Skipping unknown field > [normalPerVertex] [SFBool]. > WARNING: OSBCommonElement::readFieldContent: Skipping unknown field [solid] > [SFBool]. > WARNING: OSBCommonElement::readFieldContent: Skipping unknown field > [texCoordIndex] [MFInt32]. > > 1253 warnings from the ".osb" loader, but ultimately the scene loads > correctly. > > Is there something I should do, or not do, to avoid these warnings?
the VRML loader stores the original VRML fields in an attachment (with dynamically added fields). The OSB writer can write those out, but it can not load attachments with dynamic fields back in ATM. However, the VRML attachment is marked as internal, which should cause the OSB writer to ignore it, but it doesn't, so that is definitely a bug. I'll work on a fix. Cheers, Carsten ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users