Greetings. OpenSG2.0
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? -- Ted ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users