Planetside Software Forums

General => Terragen Discussion => Topic started by: mogn on December 03, 2007, 02:41:29 AM

Title: Warning
Post by: mogn on December 03, 2007, 02:41:29 AM
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 '&'
Title: Re: Warning
Post by: jo on December 03, 2007, 03:44:36 AM
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.

Regards,

Jo