Mutliples in Terragen?

Started by WAS, October 25, 2018, 08:38:26 PM

Previous topic - Next topic

Dune

No, but does that save on rendertime? It works the same way, but there's no compute terrain anyway, just the difference between get altitude and displacement to scalar....

mhaze

#31
Here's an example using get altitude, slightly easier to mask but harder to set up. I've added a redirect to add to the fun.

Matt

#32
If you had a lot more terrain shaders in there, then yes, the number of times they are calculated substantially affects the render time (for the same reason that Compute Terrain affects render time). Moreover, someone might follow this whole setup by a Compute Terrain, so you want it to be efficient. Your Displacement to Scalar should be replaced with Get Altitude and its input disconnected. I believe it will produce the same output, but more efficiently.
Just because milk is white doesn't mean that clouds are made of milk.

Dune

Thanks Matt. I wouldn't have thought the difference between get altitude (a calculation, afaik) and displacement to scalar (a calculation) would be that big, but it's good to know.

Oshyan

#34
Different calculations have different levels of complexity and thus calculation time. This goes down to even the simplest of calculations, for example addition and subtraction are faster in CPUs than multiplication. Both are "calculations", but one takes more resources/time.

- Oshyan

Matt

Displacement to Scalar calculates the tree of nodes input to the Displacement to Scalar (i.e. the fractal in your example, which has hundreds of instructions), while Get Altitude simply reads the displacement that was already in memory and calculates its altitude (which is just one vector subtraction and one dot product).
Just because milk is white doesn't mean that clouds are made of milk.

Dune

Thanks, guys. Learned something again!

WAS

Found this digging on the forums by Frank, could be of help with different types of terracing.

https://planetside.co.uk/forums/index.php/topic,13221.0.html

WAS

Quote from: WASasquatch on October 25, 2018, 08:38:26 PM
Is it possible to do a conditional to check multiples? Ex ( altitude / scalar ) != 0

Additionally have it recursive for height? From like 0 - alt or alt - 0

What I was thinking of doesn't provide me anything