Hi Mark, Thanks for the rest model. I have finally had the time to look into this issue and have resolved it by added a fallback of reading the color array as a Vec3Array if only rgb colours are available. The fix is checked into svn/trunk.
Cheers, Robert. On 27 March 2014 at 14:35, Bolstad, Mark <[email protected]> wrote: > While trying to map some functionality to color per vertex, I came across > a bug in that colors aren't loaded properly. > > At daeReader::resolveMeshArrays:931 (daeRGeometry.cpp) it calls out to > createGeometryArrays with types of Vec4Array. If you trace this down into > the daeSourceReader call to getArray, you'll find that it reads the data > into a Vec3Array, then returns the Vec4Array resulting in no colors. > > Anyone have a quick fix? (I'm currently attempting to change the array to > Vec3, then convert it to a Vec4 in resolve MeshArrays). > > Attached is a small collada file created in Blender that shows the problem. > > Mark > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

