Hi Matthias,
On Thu, 2004-05-13 at 15:36, Matthias Biedermann wrote:
>
> Still struggling with my CameraDecorators I'm not quite sure if I got the
> concept behind them right.
> If I have a PerspectiveCamera and like to define its position, I use a
> beacon node. But where's then the difference between using an additional
> MatrixCameraDecorator for this camera to alter its transformation via
> matrices (like in some test programs) and setting the transformation of the
> beacon "directly"? Sure, decorators offer some more features, but in this
> case can I get away with changing the beacon-core...?
The difference is that the beacon is automatically updated whenever
something above it in the graph changes. The MatrixCameraDecorator
matrices are fixed and need to be updated by you every frame. The beacon
matrices are in the scenegraph and are updated automatically.
For your case the idea would be to use the the object you want to
cubemap as the beacon and then use the decorators to get the 6
directions. The tricky part is that the camera will use the same
direction as the object and not the principal axes. That might make
things a little more complicated, depending on what you do with your
cubemap.
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