Peter, Wow, good eyes. Thanks a lot for that. It now works.
Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hrenka Sent: Monday, January 08, 2007 7:02 AM To: osg users Subject: Re: [osg-users] DrawArrays and saving files Hi, Dorosky, Christopher G wrote: > > Hi all, > > I don't understand what I am doing wrong here. > > Assume that the pointers are valid, etc.... since if BROKE is not > defined, it all works. > > > geometry->setVertexArray(&v); > geometry->setColorArray(&color); > geometry->setColorBinding(osg::Geometry::BIND_OVERALL); > > #ifdef BROKE > geometry->addPrimitiveSet(new > osg::DrawArrays((GL_POINTS, 0, aP->nVertices))); Try using less parentheses: geometry->addPrimitiveSet(new osg::DrawArrays(GL_POINTS, 0, ap->nVertices)) If you put all arguments in parentheses, only the last parameter is used (comma operator) which in your case calls the wrong constructor. Cheers, Peter _______________________________________________ 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/
