Simon wrote:
> 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
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum


Thanks for the math, was wondering how to project a plane based on 3 points.  :D

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=12870#12870





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to