Paul Griffiths wrote: > Ive worked out whats required to get my effect working , though im only > guessing right now at the math required. > > Just need 4 clipPlanes facing into the into the scene surrounding the panel. > Simple, in theory lol > > Cheers, > PaulG
Given 3 points on a plane, the plane equation is: osg::Vec3 n = (pt1 - pt0) ^ (pt2 - pt1); float d = -n * pt0; osg::ClipPlane *cp = new osg::ClipPlane(i, n.x(), n.y(), n.z(), d); -- http://www.ssTk.co.uk _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org