hi dirk, 
thanks for the hasty answer. Since i am quite new also to this problem,
i come back for some more explanations:

>are you using a ProjectionCameraDecorator for your Cave? If yes, you
can
> ignore the aspect problem, just set your corners right and things will
> work.

nope, all the project i have inherited from my predecessor 
works with the ShearedStereoCameraDecorator. Looking in the
OpenSG specs i noticed that they are both inherited from the 
StereoCameraDecorator and then sort of "brothers" I dunno 
how fast it would be converting the code from one to the 
other. 
1) stupid question: what's the use of the sheared decorator?
2) what if i simply switch from one to the other??
3) Looking in the doxygen documentation I did not find any 
corner setting routine in the class. I just found the setWidth setHeight
methods. Were you referring to these when you said that i can specify
the corners of the CAVE??? 

> It depends on what the aspect ratio of the pixels of your projection
is.
> The easiest way to measure that is to display a 100x100 pixel rectangle
> (a simple image will do), measure it's size on screen and use
> width/height as the aspect ratio. 

I will make a try. may i use the image foreground to display the 100x100
image or that would alter it's proportions? My immediate objective
should be stretching the viewport just in the height direction, to match
the images on the side walls (the frontal wall and the ceiling 
just fit fine)

> Just make sure that your display window actually only fills the
visible
> part (most projectors nowadays have a fixed aspect ratio != 1, so for
> your Cave only a part of the projected pixels are visible).

Not sure of what did u mean. What pixels are not visible? Actually 
the CAVE is set up so no part of the projection falls outside the
bonduaries of the screens...

Thanks again for the patience,
Enrico



Il mer, 2005-06-08 alle 21:18, Dirk Reiners ha scritto:
>       Hi Enrico,
> 
> On Wed, 2005-06-08 at 18:04 +0200, Enrico Borrione wrote:
> > hi OpenSG users...
> > i have a small problem, yet quite puzzling. 
> > I have built the roof of the cave i am using
> > in my experiments and... i discovered that i
> > need to change the aspect ratio of the upper 
> > projection.
> >
> > I mean... on the three walls i have 3 separate 
> > projections using the standard 3:4 aspect ratio,
> > which is natural since the screens are rectangular.
> > The roof on the other side is square, so my projection
> > is right in the "horizontal" axis and shortened in 
> > the "vertical".
> > I think that i have to use the aspect field of my perspective 
> > cameras, to correct this bad side-effect, but since
> > it is the first time that i come across this kind of trouble i was
> > wondering if someone already solved it.
> 
> are you using a ProjectionCameraDecorator for your Cave? If yes, you can
> ignore the aspect problem, just set your corners right and things will
> work.
> 
> > What aspect ratio should i use??? 1:1????
> > Does the correct syntax sound like:
> > 
> > camera->setAspect (1.0);
> > ????
> > 
> > where 1.0 is the result of horizontal-pixel/vertical-pixel length???
> 
> It depends on what the aspect ratio of the pixels of your projection is.
> The easiest way to measure that is to display a 100x100 pixel rectangle
> (a simple image will do), measure it's size on screen and use
> width/height as the aspect ratio. 
> 
> Just make sure that your display window actually only fills the visible
> part (most projectors nowadays have a fixed aspect ratio != 1, so for
> your Cave only a part of the projected pixels are visible).
> 
> Hope it helps
> 
>       Dirk
> 
> 
> 
> 
> -------------------------------------------------------
> 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
> 
> 



-------------------------------------------------------
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

Reply via email to