> > I am creating a scene in which there will be two geometries connected by a > tube. The geometries can move around in between frames, so the tube must > also move and resize. The way I am trying to do this is to have a geometry > for a tube of unit length and diameter. Then, if the position of either > endpoint changes, I recalculate the midpoint and use a translation matrix > to move the tube there, and give it the correct scaling and rotation to > connect the two endpoint geometries. > Is this the most efficient way to do this?
Without using a vertex shader, this is probably the best way to do it. > Is there some way I could tie in to the two MatrixTransforms for the > endpoints to automatically update the tube's location? > No. Geometries that "meet" each other can only be under a common transform. -- Chris 'Xenon' Hanson, omo sanza lettere. [email protected] http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

