Hi Enrico,
On Fri, 2005-06-10 at 11:52 +0200, Enrico Borrione wrote:
>
> 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?
It's worth a try.
> On the other hand there is the ProjectorCameraDecorator.
> 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?
The coordinate system of the tracker. If you're not head-tracked, you
can do whatever you want. You just have to make sure that the
coordinates are consistent with the coordinate system of the node that's
set in the user field of the PCD.
> 2) Do i have to measure the physical dimensions of the
> screens???
No, as long as the proportions are correct any coordinate system will
do.
> 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))
Yup.
> Thanks again for your help...
> it is greatly appreciated
> and... good vacation :)
It was more work than vacation. But it was good. :)
Yours
Dirk
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users