I believe it is a bug in FeelingSoftware's code. But without seeing the document I don't know for sure. When I get some time I will update and do the export look at the cow.dae.
According to the XML Schema Part 2: Datatypes (http://www.w3.org/TR/xmlschema-2/#NCName) : "[Definition:] ID represents the ID attribute type from [XML 1.0 (Second Edition)]. The ·value space· of ID is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·lexical space· of ID is the set of all strings that ·match· the NCName production in [Namespaces in XML]. The ·base type· of ID is NCName." And NCName: "[Definition:] NCName represents XML "non-colonized" Names. The ·value space· of NCName is the set of all strings which ·match· the NCName production of [Namespaces in XML]. The ·lexical space· of NCName is the set of all strings which ·match· the NCName production of [Namespaces in XML]. The ·base type· of NCName is Name." According to Namespaces in XML (http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName) NCName is: "NCName ::= (Letter | '_') (NCNameChar)* /* An XML Name, minus the ":" */ NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender" therefor Cow.osg is a valid ID. cow.osg-positions is a valid ID. As long as there is a source in the mesh with an ID "cow.osg-positions" then the <input semantic="POSITION" source="#cow.osg-positions"/> is correct. -Andy Andreas Goebel wrote: > Hi, > > I have converted bessie with todays cvs collada-writer do cow.dae. > > When I try to open this in the "feeling viewer" for dae (see > > http://www.feelingsoftware.com/content/view/40/66/lang,en/ > > ) > > I get those errors: > > ERROR[61]: Mesh has source with an unknown id:cow_osg > WARNING[12]:Unable to find instantiated entity: cow.osg > ERROR[12]: Trying to instantiate non-valid geometric entity. > > Line 12 is: > > <instance_geometry url="#cow.osg"/> > > and line 61 is: > <input semantic="POSITION" source="#cow.osg-positions"/> > > Is this a bug in osg or is this viewer non conformant? I have no > experience with dae so far, so I can´t tell. > > I have tried to load bessie.dae in Blender, but this didn´t work either. > There were no error messages, but nothing showed up. > > > Regards, > > Andreas > > > > > _______________________________________________ > 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/
