Author Topic: Node order in graphs  (Read 300 times)

Offline DutchDimension

  • Member
  • *
  • Posts: 57
  • Environment Artist @ Square Enix
Node order in graphs
« on: August 09, 2018, 02:49:15 AM »
Is there any logic behind the reasoning of the node order in the graph? Specifically, in a default scene the Atmosphere node is plugged into the Planet node. Then when you create a cloud node TG re-wires the graph. Now the cloud node goes into the Planet node and the atmosphere goes into the cloud node. This seems counter-intuitive to me. A strange way of thinking/reading a graph. Surely it makes more sense to have clouds plugged into the atmosphere which then are plugged into the planet. When I manually re-wire the nodes as such, there seems to be no difference. So why the confusing flip-flop?

Offline WASasquatch

  • Member
  • *
  • Posts: 3136
  • The Homeless Landscape Artist
Re: Node order in graphs
« Reply #1 on: August 09, 2018, 03:14:06 AM »
Is there any logic behind the reasoning of the node order in the graph? Specifically, in a default scene the Atmosphere node is plugged into the Planet node. Then when you create a cloud node TG re-wires the graph. Now the cloud node goes into the Planet node and the atmosphere goes into the cloud node. This seems counter-intuitive to me. A strange way of thinking/reading a graph. Surely it makes more sense to have clouds plugged into the atmosphere which then are plugged into the planet. When I manually re-wire the nodes as such, there seems to be no difference. So why the confusing flip-flop?

Simply how nodes are added. When you add a cloud layer, it's added as if you right clicked the the Output of the Atmsosphere and inserted a Cloud Layer. You're free to reorder the graph however it is more human-readable to you. I've always wanted to have backwards looking nodes, would be a nice feature.
« Last Edit: August 09, 2018, 06:19:07 AM by WASasquatch »
Art can be a window into the soul

Offline Dune

  • Member
  • *
  • Posts: 15076
    • www.ulco-art.nl
Re: Node order in graphs
« Reply #2 on: August 09, 2018, 05:50:27 AM »
I think the logic is in the reading of the nodes, that's done in the opposite direction (as I understood). I think atmo is the upper limit (except for background), like the basic terrain displacement is the lower, both being read from planet 'outwards'.

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3538
  • I'm the crazy one
Re: Node order in graphs
« Reply #3 on: August 09, 2018, 06:50:09 PM »
My logic is this: Firstly, they should be connected in the same order that they appear in the Node List (the Node List should be built from the Node Network). I assume that part is universally acceptable. Secondly, when I add a node to the Node List I prefer it to go to the end of the list, or after whichever node is currently selected, as with the terrain list and the shaders list. But this is probably more subjective and I donít claim that this is going to be right for everyone.
Just because milk is white doesn't mean that clouds are made of milk.

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3538
  • I'm the crazy one
Re: Node order in graphs
« Reply #4 on: August 09, 2018, 06:55:35 PM »
More on my second point. It doesnít matter for cloud layers but the ordering has meaning for surface shaders, so decisions made there affect cloud layers too (for consistency).
Just because milk is white doesn't mean that clouds are made of milk.

Offline DutchDimension

  • Member
  • *
  • Posts: 57
  • Environment Artist @ Square Enix
Re: Node order in graphs
« Reply #5 on: August 10, 2018, 06:18:30 AM »
I think the logic is in the reading of the nodes, that's done in the opposite direction (as I understood). I think atmo is the upper limit (except for background), like the basic terrain displacement is the lower, both being read from planet 'outwards'.

I like that way of thinking. I'll try and keep that in mind. Thanks Dune.


Thank you for the clarification Matt! I'll give that some more thought.

Offline D.A. Bentley

  • Member
  • *
  • Posts: 359
    • D.A. Bentley
Re: Node order in graphs
« Reply #6 on: August 21, 2018, 06:58:30 PM »
More on my second point. It doesnít matter for cloud layers but the ordering has meaning for surface shaders, so decisions made there affect cloud layers too (for consistency).

Is this because Surface Nodes build on top of each other, while Cloud Nodes get their ordering more from their elevation and thickness? 

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 13022
  • Holy snagging ducks!
Re: Node order in graphs
« Reply #7 on: August 21, 2018, 09:42:53 PM »
Pretty much, yes.

- Oshyan

 

anything