daniele argiolas wrote:
Daniele,Hi, in attachment the model.Thank you! daniele I have mailed the modified file directly to you to avoid cluttering up the list. The changes are at the end of the file. I have changed all instances of <bind semantic="UVSET0" target="#cageShape-lib-map1"/> to <bind_vertex_input semantic="#cageShape-lib-map1" input_semantic="UVSET0" input_set="0"/> The bind element is not allowed in the Collada COMMON profile from verison 1.4.1 of the specification onwards. However if a bind_vertex_input is not found our loader will just issue the warning and then go on to use the first TEXCOORD found if any. This will not work in all cases but does work on your file. if (k == bvia.getCount()) { osg::notify( osg::WARN ) << "Failed to find matching <bind_vertex_input> for " << MainTextureTexcoordName << std::endl; // This may be a departure from the spec. For the time being I am only going to do this // for the MAIN_TEXTURE_UNIT. // Not found so just use the first TEXCOORD we have if any. if (cachedGeometry->_TexcoordSetMap.size() > 0) clonedGeometry->setTexCoordData(MAIN_TEXTURE_UNIT, cachedGeometry->getTexCoordData(cachedGeometry->_TexcoordSetMap.begin()->second)); } Roger |
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org