Started by mogn, December 03, 2007, 02:41:29 am

Previous topic - Next topic


December 03, 2007, 02:41:29 am Last Edit: December 03, 2007, 02:44:02 am by mogn
Make the following experient:

Create a constant scalar with the value 3.141592653, and rename it to PI
Create a constant scalar with the value 5, and rename it to N
Create a divide scalar and connect PI to the left input, and N to the right input.
Double click the divide node. The mini preview shows as expected a grey square.
Rename the the divide node to the natural PI/N
Double click the divide node again.
The mini preview now shows the whole landscape.

This error is different from the puf-error you get when you rename a node to a name containing an '&'


Hi mogn,

This is because TG2 uses the "/" character to delimit paths through the node network. It allows you to create links to nodes deeper in the node network than the node you are editing. The reason the node preview flips back to the showing the whole terrain is that when you add the "/" it is looking for a node called N which is ( I think ) inside the PI node, and because it can't find that node the preview goes to its default display, which is showing the scene.

This is and isn't a bug. I think that perhaps shader name fields should not allow the entry of characters like "/" which aren't valid in names. I also think you shouldn't be able to enter non-numeric characters in numeric fields etc. as well, but I think Matt has a different view on this and is happy to let anything go. Essentially, don't use the "/" character in node names.