Hello osg users, I have created an osg::Geometry that I display with no problem. At the moment I change the color of this Geometry creating a new array of colors and calling setColorArray(myNewColorsArray) on the Geometry each time I need. But I wondered if the memory was well managed: is the previous array of colors (set at the previous call to setColorArray) deleted automatically with my method? Now if I want to modify the position of the vertices of the same Geometry, can I do it the same way, creating a new vertices array and calling setVertexArray(myNewVerticesArray)? That does not seem to be very efficient to me... Any idea? And last, I have a frame orientation 1 with respect to frame 0, given by quaternion 0q1. Now I want to rotate this orientation 1 around its own x axis (a rotation of frame 1 around x1) - the rotation around the x axis of whatever frame being given by qx. What I have done in most other 3D packages, and the theory gives 0q1 * qx for my new orientation (* being the quaternion multiplication). What I had to do in osg to obtain the desired final orientation was the commuted multiplication qx * 0q1. Any idea why? Thanks, Antoine.
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
