Hello Pablo,
Pablo Carneiro Elias wrote:
> Hi all.. I have some easy questions for u that will help me a lot here..
> I've been looking for answers within the documentation but was unable to
> find...
>
> here's the thing:
>
> 1) Each Viewport in a window has a root node (which is the scenes root
> node for this viewport) and a camera, which will set the way the scene
> will be displayed within the viewport...
>
> Is there a way of retrieving all viewports a camera is attached to?
No, sorry, the cameras do not store a pointer to the viewports they are
being attached to, so the only way to obtain this information is to go
through all viewports and examine their cameras.
> 2) I need some way to perform operations right before a node is reached
> for rendering within the render action traversal... I need something
> like a callback wich is called to a specifica node only.... is there a
> way of registering some kind of a callback within a node wich will be
> called when it is reached during the traversal?
No. However, you can create a new type of node core and register it with
the RenderAction (you can look at what e.g. Group::initMethod does). The
big problem with callbacks is that they can not easily be transported
over a network ...
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users