[eq-dev] Identifying a compositing-only-node

Stefan Eilemann eilemann at gmail.com
Wed Nov 26 08:53:45 CET 2008


On Tue, Nov 25, 2008 at 3:27 PM, Mathias Heyer <mheyer at 3dinteractive.de> wrote:

> In other words, a call to Channel::frameDraw is the only sure sign, that the
> node needs the scene database (or not)?
> I could implement it that way, but it wouldn't feel good :-) It would shift
> a part of the setup process outside of the setup of the nodes.
> I thought about introducing a certain naming scheme for nodes, so each node
> could identify its role at the time of initialization... what do you think
> about that?

The two options you describe are the only ones which come to my mind
right now as well.

It is on purpose that there is no such API yet, since with
load-balancing a compositing-only node as such does not exist. A node
which is only compositing for one frame might contribute to rendering
during another frame.

_If_ you can do the lazy initialization cleanly, I would go for it
since it is the most flexible solution. Otherwise hard-coding node
names is an option, although you might need to change this in the
future.


Cheers,

Stefan.



More information about the eq-dev mailing list