Hi Matthias,

On Tue, 2004-05-11 at 14:15, Matthias Biedermann wrote:
> Hi folks,
> 
> 
> I'd like to have some dynamic environment mapping in my application. So 
> I'll take the usual way and render the six faces of the cube, grab their 
> views into a texture and finally use this as the Cube-EnvMap in my shader. 
> As the objects (and thus the "cube-camera") will move around, I thought 
> about building a camera decorator that extends the one defined camera to 
> look into these six directions in analogy to the StereoCameraDecorator etc.
> 
> Is there already such functionality around? And if not, what would be the 
> best way to accomplish this, as extending this part of OpenSG seems rather 
> involved...maybe some examples or pitfalls.

You can use a standard MatrixCameraDecorator. If you only do 90 degree
rotations that's simple enough. The more interesting part is the six
cube face rendering, that's harder to hide.

> p.s.: Related to this six-face decorator would be a variation to get a 
> hemicube rendering. There I thought about taking MatrixCameras instead of 
> standard 90-degree perspective ones to limit the frustum of the four 
> horizontal cameras to the upper half...something you'd recommend?

If you're comfortable with generating your own matrices go ahead. But in
general a PerspectiveCamera is probably easier to use. And the
MatrixCameraDecorator should help with moving stuff around.

Hope it helps

        Dirk




-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to