Hi,
Enrico Borrione wrote:
Hiya...
I have tried putting a simple camera->setAspect(3.0/4.0)
in my application... as i expected in the horizontal
direction the images melts well, in the vertical direction
i have still a lot of troubles.
I have thought a bit of it and i did find the problem:
my ceiling viewport's sides are *shorter* than the corresponding
wall's sides. So even if i change the aspect of the
camera, the vertical angles are all wrong (the vertical
FOW supposes a symmetric projection, but i have an
a-symmetric projection since one side is stuck to
the frontal wall and the other is "free"). I was
wondering whether i can solve this simply *stretching*
the upper viewport so it *virtually* matches the length
of the side walls, no matter if the projector actually
draws just the first 3/4 of it.
Does it have any sense?
On the other hand there is the ProjectorCameraDecorator.
You mean ProjectionCameraDecorator here, right?
I am a bit reluctant to use it, since my cave does not
have an head tracking system.
How does the surface multi field that u suggested works?
It seems like i must supply one surface field 4
every side of the cave.
1) The question is: the coordinates
of the 4 points in what coordinate system are expressed?
2) Do i have to measure the physical dimensions of the
screens???
3) does i access those field in the usual:
camera->getSurface()->push_back (Pnt3f(lowerleft))
camera->getSurface()->push_back (Pnt3f(lowerright))
camera->getSurface()->push_back (Pnt3f(upperright))
camera->getSurface()->push_back (Pnt3f(lowerright))
It should be
camera->getSurface().push_back (..)
and the last should be
camera->getSurface().push_back (Pnt3f(upperleft))
For a tracked environment you would specify the projection surface in
the tracking coordinate system
and put the tracker viewing transform into the user beacon transform
(each frame).
For the surface field you have to measure the physical dimensions of the
projections.
There has been an explanation on the mailinglist (excerpt from the
documentation) about that,
see http://sourceforge.net/mailarchive/message.php?msg_id=9066298
Christoph
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users