I have found a solution for now. What I am doing is just manually calculating
if the polygon is facing the camera or not. Here's some pseudo code:
Code:
osg::Vec3d camPos = something;
osg::Vec3d camDir = pointOnPolygon - camPos;
double dotProduct = camDir * polyNormal;
if (dotProduct > 0.0f)
printf("VISIBILE\n");
else
printf("NOT VISIBLE\n");
Would be nice if there was a way for me to check if the driver has culled away
the polygon without me having to manually calculate it, but from what I can
tell so far this isn't actually possible. If it is, then I'm all ears! At least
for now I have a way to move forward.
Thanks for everyone's help.
Cheers,
--
Christian
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43850#43850
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org