Hi Pablo,
Carsten Neumann wrote:
>>
>> 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.
So, there is a way to retrieve all Viewports a Camera is attached to. and it 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 ...
Depending on what you want to do: there is a DrawFunctorCore in Contrib that
allows you to define a callback that will be called when drawing. As Carsten
said it won't work over the networkbut it might give you some ideas on how to
do it.
Yours
Dirk
-------------------------------------------------------------------------
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