Hi Carsten,

Am 22.11.2011 17:59, schrieb Carsten Neumann:
>       Hello Johannes,
>
> On 11/22/2011 03:27 AM, Johannes S. Mueller-Roemer wrote:
>> to ensure the correct ordering of rendering stages (e.g. SimpleStage), I
>> have been attaching the stages that need to be executed first as
>> children of the stages that need to be executed later on.
> hmm, I'd just make them children of one node in the order the stages
> need to run.
This is pretty much what I am doing right now, although oddly I have to 
add them in the opposite order for them to be executed in the correct 
order.
>
>> This works for
>> SimpleStages so far, but now I require the same with an AlgorithmStage,
>> but when attaching a SimpleStage to an AlgorithmStage, the child is not
>> visited. Is there any way to ensure the children of an AlgorithmStage
>> are visited, or another way to ensure execution order is maintained? A
>> simple example is attached.
> yes, that is by design, it is the algorithms responsibility to traverse
> the scene below the stage (this allows for example multi pass algorithms).
> That probably requires the algorithm to be implemented as a
> FieldContainer that has the StageHandlerMixin as a parent. See e.g.
> Source/System/Dynamics/Skeleton/OSGSkeletonParent.h for an example how
> to get the mixin into the inheritance hierarchy.
>   From the algorithms execute() you'd then just call
> this->recurseFromThis(action).
>
>       Cheers,
>               Carsten
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> Opensg-users mailing list
> Opensg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/opensg-users
I think I will stick with the current solution.

Regards

-- 
Johannes S. Mueller-Roemer, MSc
Wiss. Mitarbeiter - Interactive Engineering Technologies (IET)

Fraunhofer-Institut für Graphische Datenverarbeitung IGD
Fraunhoferstr. 5  |  64283 Darmstadt  |  Germany
Tel +49 6151 155-606  |  Fax +49 6151 155-139
johannes.mueller-roe...@igd.fraunhofer.de  |  www.igd.fraunhofer.de


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to