Hi Cesar, osg::Geometry::getNormalArray() now returns an osg::Array rather than a Vec3Array. This has been done to allow a wider range of types for normal arrays. For instance one could use a UByte4Array so help reduce memory usage/bandwidth requirements.
In you own code you should just have to a dynamic_cast<osg::Vec3Array*>. I'd also recommend updating to a more recent OSGExp code drop. Check the OSG website. Robert. On 7/29/06, Cesar Ismael Mendoza <[EMAIL PROTECTED]> wrote:
Good afternoon, I'm having a problem compiling osgExp using the new release of OpenSceneGraph. I've relabelled the various include files so that they point to the correct places, but now I'm getting the following error in OSGHelpers.cpp: error C2440: 'initializing': cannot convert from 'osg::Array *' to 'osg::Vec3Array *' The line in question is: osg::Vec3Array * normals = geometry->getNormalArray(); I see no logical reason as to why this would happen, since I didn't have this problem with the 0.9.2 release of OSG. Has anyone else had this problem and knows of a way to fix it? Regards, Cesar Mendoza Student Electrical Engineer Queensland University of Technology Project: VR Experiment Using OpenSceneGraph _______________________________________________ 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/
