Planetside Software Forums

General => Terragen Discussion => Topic started by: mhaze on November 12, 2007, 10:04:49 AM

Title: get position
Post by: mhaze on November 12, 2007, 10:04:49 AM
Is it possible to feed XZ co-ordinates into the input of a get position in texture node, with the aim of limiting/masking the area affected by susequent nodes?   if that makes any sense to anybody :-\
Title: Re: get position
Post by: mhaze on November 12, 2007, 02:21:14 PM
or to put it another way - is there a way of masking using only function nodes - perhaps using conditionals. So that only a specified area of the landscape is affected by say modoesque spikes?
Title: Re: get position
Post by: Volker Harun on November 12, 2007, 03:36:16 PM
Well, I doubt that the input of the get position will do any significant. But want to be proofed wrong ,-)

With functions: The output of the 'get position' can be converted to the scalars X,Y,Z.
You can use two conditionals for setting a range for each scalar:
If X is larger than i.e. 1000 (m) then ... if X is smaller than i.e. 2000 (m)

Of course instead of the values (1000 and 2000) a function can be used.

Else, I would do it more random ... multiplying the 'get position' output with a large scaled, high contrasting powerfractal.
Title: Re: get position
Post by: mhaze on November 12, 2007, 04:06:49 PM
thanks Volker - lots to think about. will feed back any success I have

Mick
Title: Re: get position
Post by: bigben on November 12, 2007, 05:25:10 PM
Yes, you use the output of get position and then compare it to your XZ values using functions.

Some examples:

http://forums.planetside.co.uk/index.php?topic=1520.msg15046#msg15046 (http://forums.planetside.co.uk/index.php?topic=1520.msg15046#msg15046)
http://forums.planetside.co.uk/index.php?action=profile;u=1771 (http://forums.planetside.co.uk/index.php?action=profile;u=1771)
http://forums.planetside.co.uk/index.php?topic=1537.msg15236#msg15236 (http://forums.planetside.co.uk/index.php?topic=1537.msg15236#msg15236)
http://forums.planetside.co.uk/index.php?topic=2036.msg20030#msg20030 (http://forums.planetside.co.uk/index.php?topic=2036.msg20030#msg20030)