Hi Frashid,

If this is the case, then perhaps one could adjust the line setup in
clip space or window space before it gets projected into model
coordinates.

Robert.

On 6/5/07, Farshid Lashkari <[EMAIL PROTECTED]> wrote:
Hi Eric.

I experienced the same problem as well. The PickVisitor uses the clip
plane of the projection matrix to determine the length of the line to
perform the intersection with. With orthographic projection matrices,
the length of this line is computed to a small value. This is not a
problem when adding flat objects to the HUD, like text and quads.
However, with 3D objects this causes a problem because most of the
polygons end up outside the line range. I solved this by applying a
very small scale factor along the Z-axis of the object. This basically
squishes it so that it is flat. I wanted to modify PickVisitor so it
can handle this case, but I couldn't figure out a clean way to
accomplish it.

-Farshid
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to