Hi Enrico,

On Wed, 2005-04-27 at 14:16 +0200, Enrico Borrione wrote:
> hi dirk, hi all osg users,
>    after a prolonged absence, here i am again.
> I am considering the idea of adding to my app the
> support for dome projection. In few words,
> i'd like to have 2 or more projectors shooting on
> some curved mirrors, and then displayng the whole 
> scene on a dome screen.
> In order to achieve this objective, the first step
> is to have a sphere-distorted viewport of the scene.
> After a bit of googling around, it seems that the only
> way to do a distorted projection of the screen is
> rendering to a texture and then distort it in some
> way. 
> Does OpenSG allows to render to a target and then 
> post process it (realtime)? 
> Any hint on the subject?

We're doing similar things for color correction and for a little bit of
distortion correction in the Cave in Darmstadt, so yes, it's definitely
possible.

The most general way is to add a Viewport with a TextureGrabBackground
that just grabs whatever is on screen into a Texture and then uses that
texture with a distortion geometry.
Source/WindowSystem/GLUT/testWindowGLUTTGB.cpp is an example for that.

The real trick is creating the distortion geometry. Getting that to work
and correctly line up is not simple...

HIH

        Dirk


-- 
-- Dirk Reiners               OpenSG Forum             [EMAIL PROTECTED] 
-- The OpenSG Open Source Scenegraph:            http://www.opensg.org
-- Join the list at    http://lists.sf.net/lists/listinfo/opensg-users



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to