Thanks Martins, applied On 11 May 2010 18:41, Martins Innus <[email protected]> wrote:
> The current fbx writer doesn't seem to support BIND_PER_VERTEX for normals. > If you have this type of geometry it, exports the the first normal in the > array over the whole primitive set. I don't know that the attached change > should be applied as is, since I don't know enough about DrawArrays and Draw > Elements to know if the indices for the vertices and normals are guaranteed > to be the same. I tried it on a couple models and that seemed to be the > case. > > The alternative is to have the logic down in setControlPointAndNormalsAndUV > and set the normals there with the "vertexIndex" if the binding type is per > vertex. Not sure what is cleaner. > > Martins > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > >
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
