Dot Nodes in NodeGraph

Sorry, I lost track of this thread…

I very much like the idea of these prims not actually being inside the node graph. Keeping them as a pure UI concept like backdrops seems a lot cleaner to me. I find it hard to mentally map out all the cases and determine if there is some important feature that is going to be excessively complicated by this approach. But if the various use cases can be covered by writing a more complex UI layer on top of the combined (node graph, bundles) set of prims, I think this is the superior design.

I’ll ask Rafal to have a look at this thread, as he’s a lot deeper into the technical details in this area than I am.

I aim to write up a full proposal post-siggraph. To two of James’s later questions:

  • layering opinions - since a bundles-Dot is almost entirely specified by a relationship, we get to use full list-editing of targets in stronger layers.
  • identifying Material splice points - I’m not positive they will want the exact some treatment, but this very much reminds me of the some-years-old forum discussions (possibly the old forum) about “publishing” aov’s for consumption by RenderVars, and there seemed to be consensus that aov’s should be a sub-namespace of outputs on a Material/NodeGraph prim that connect to the shader output that produces a result.

Re: Identifying Material splice points - I think the bundle approach has the potential to define such splice points. When the bundle specifies an input that has not been connected to anything yet, the GUI should still draw a noodle between the dot and that input. Subsequently connecting something to the dot in the GUI should connect that source to the destination input originally specified by the bundle.

I think there are two kinds of “splice points”: an unconnected input and a dangling output. We mostly talked about an unconnected input, but I think bundles can handle dangling outputs too, if they are able to target a primitive output (eg, bundles = [</foo/bar.outputs.baz>]).

Connecting a dangling output dot to an unconnected input dot would establish a connection from the source prim output to the destination prim input, and GUI would route it visually thru the two dots.

Somewhat tangentially relevant, but dots do have potential to become functionally relevant, although this may go beyond USD’s scope (certainly is beyond gui-dot concept currently discussed).

But I wanted to mention that packaging noodles into struct-like entities could serve as parameter packs when connecting shader nodes. Ie, several outputs of several shader prims could be collected into one dot, and bundled together into one single super-noodle, which then could feed into a single super-input of a shader node. Sematically, this would mean that super-noodle could drive a single proper/formal input of a shader based on input name and the sub-noodle name. This is akin to v-structs.

Anyway, like I said probably not really immediately relevant to the discussion, without biting an even bigger chunk that we can chew.

EDIT: Oh, but it does hint that it would be nice if the bundle approach could arbitrarily name the dot’s “inputs” and “outputs”, for user’s annotations of the connection purpose, etc. That’s what the NodeGraphDot would inherently be able to provide.

Thanks, @rafalSFX … I definitely see the desire to formalize something like vstructs, but I do worry that cuts against the purpose of Dot nodes - it certainly fights against the “bundles” approach, which doesn’t even really distinguish inputs from outputs (part of its attraction) - it’s just gathering up noodles into a bundle. So you could label/describe the DotNode itself, but it would be a statement about the bundle, not its constituent members, independently.

There is potentially room and need to expand the OM for connections in the future so that individual targets can have data on them. But that would be something available for all connection targets, not just Dots.

Not sure how helpful this is, but from a Katana user’s perspective only, it seems to me that Dot nodes are two different things: connection layout entities and named connection points. In Katana, you can switch a Dot from one to the other and back; but that doesn’t mean the two states can’t be implemented as two different entities. They both share “connection” behavior, but one is expressed only in a GUI context and the other is a fully realizable graph node.