Gerrit,
thank you very much for your reply.

On Tue, 02 Dec 2008 at 11:15:44 +0800, Gerrit Voss wrote:
> On Mon, 2008-12-01 at 16:44 +0100, Christoph Schmidt-Hieber wrote:
> > Hi,
> > I'd like to use OpenSG to project a VR environment to a dome using a
> spherical mirror, as described by 
> > Paul Bourke on his web site
> (http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/domemirror/). 
> > I have downloaded some code from his web site that creates a fisheye
> projection using OpenGL, 
> > basically by rendering 4 faces of a cube, distorting the resulting
> textures and mapping them to the dome surface.
> 
> the general infrastructure should be there, at least for OpenSG2.
> Though examples might be spread out over several classes (e.g
> in NodeCores/Groups HDR, Effects/DisplayFilter. A cubemap generation
> example can be found in DynamicStateGenerators/OSGCubeMapGenerator.
> 
> Personally I would build it after the HDR stage which renders into a
> texture with some postprocessing.
> 
> Could you send me a link to what you downloaded so I can have a look and
> provide some basic integration work.

The code is here:
http://local.wasp.uwa.edu.au/~pbourke/papers/tutorials/visualisation_intro.zip

The relevant files are:

lorenz/geomviewer/geomviewer.c
where the 4 texture snapshots of the cube faces are taken in HandleDisplay()

lorenz/geomviewer/dome.c
where the textures are mapped to the dome geometry

To build the code, I had to get the Xforms widget library and to change
#include "forms.h"
to
#include <X11/forms.h>
on GNU/Linux.

The presentation that goes along with the code is here:
http://local.wasp.uwa.edu.au/~pbourke/papers/tutorials/visualisation_intro.pdf

> Do you plan to use a mono or stereo projection ?
Mono to begin with.

Thank you very much for your help, I greatly appreciate it.
Christoph

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to