On Thursday 01 Sep 2011 04:59:10 Jason Oramo wrote: > Hi, > I want to draw a cylinder which could be stretched in one direction, such > as z-axis positive direction. In other word, the height of cylinder would > be longer with the time. Using the callback function and matrix to scale, > the result is unexpected, and the cylinder is scale in two direction, > z-axis positive and negative direction. Could anyone give me some advice? >
Hi Jason, your cylinder is probably positioned so that its center is at the origin of your coordinate system (i.e. the center of the cylinder is at <0,0,0>). Try moving the cylinder by half its height along +z before applying your additional scaling. Hope this helps, Magnus > ... > > Thank you! > > Cheers, > Jason _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

