Hi Markus,

On 8/9/06, Markus Trenkwalder <[EMAIL PROTECTED]> wrote:
Thank you Don for your answer, but rotating the camera is not what I
want to do.  On the attached image you can see a section of our scene
projected on two walls (70° angle between them) via two beamers.  As you
can see, straight lines have a kink (is it called so?) at the edges of
the two walls (the vertical line is the edge between the two walls; the
middle beamer projects on the right side of the line an left one on the
left side).  I want to get rid of this kinks by rotating the projective
plane and in this way distorting the view for the left beamer.

I have seen pictures from such scenarios where this problem was
eliminated but I did not find any information about how this is done.


For this set up you need both a rotate a shear.  You need a rotate to
account for the image plane being rotate by +35 and -35 degrees in
each instance.  You then need a shear to get the view frustum to pull
the view back to where you want - otherwise you'll end up with the
image correct for a projector which projects orthogonally to the wall.

To compute the shear you need to work out the distance between the
center of image had it been projected orthogonally and where you wish
it to be, then divide this distance by the distance between the eye
point of the observer and orthogonal distance to the wall.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to