So it looks like a viable option for an OpenGL ES 1.x-compatible outline is to 
scale the model in the second pass (rather than drawing wireframe), calculating 
the scaling factor so that it outlines the normal-size model by approximately 
the required amount.

With a couple of approximations, the scaling factor works out a bit like this:

scalef = ((2 * outlineWidth / viewPortHeight) + 1) * projection[1][1] * 
distanceFromCentreOfModelBoundingSpehereToEye / modelBoundingSphereRadius;

and that's fine, but now the difficult part.... can a scaling operation even be 
implemented within the constraints of osgFX's pathways? If so, how? And if so, 
how can I retrieve the projectionMatrix, viewPort, and distance to the eyepoint?

TIA,
Phil.

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to