Planetside Software Forums

General => Terragen Discussion => Topic started by: jackblack on November 30, 2018, 11:35:50 PM

Title: Scaling Down A Fractal Terrain
Post by: jackblack on November 30, 2018, 11:35:50 PM
Is there a way to scale down a fractal terrain without changing the fractals? I've tried and cannot seem to scale it down correctly.
As an example, I have a mountain that is 2 km high, but I want it scaled down to 1 km high, however if I change the scaling values, it changes the terrain completely.
Title: Re: Scaling Down A Fractal Terrain
Post by: Dune on December 01, 2018, 01:48:15 AM
How about decreasing the displacement by half? Or use a transform shader after the fractal terrain and decrease Y by half....
Title: Re: Scaling Down A Fractal Terrain
Post by: WAS on December 01, 2018, 02:43:45 AM
You can also convert to scalar, and pipe back into a displacement shader which will than give you a displacement multiplier.

Though by what you're explaining, I'm not sure why not changing the PF/Heightfield displacement multipliers wouldn't work. You shouldn't need to edit the PF fractal scales, but the displacement amplitude.

If you mean changing the scale of the whole setup, without effecting PF settings, you can use the same method from line one, except adding a transform input shader before the displacement shader. See example files.
Title: Re: Scaling Down A Fractal Terrain
Post by: jackblack on December 01, 2018, 03:50:44 AM
Yeah, the Y value is not the problem, WAS, you're pretty much correct on what I'm trying to do, but my versions (the newest version) seems to have a lot of quirks and I've found that some things do not work at all at sometimes and at other times they work great.
Title: Re: Scaling Down A Fractal Terrain
Post by: WAS on December 01, 2018, 03:06:34 PM
Things in Final Position cannot be scaled/altered.
Title: Re: Scaling Down A Fractal Terrain
Post by: Oshyan on December 02, 2018, 08:38:19 PM
I believe this should work if you feed it into a Transform Input, and adjust Scale, then adjust Displacement Amplitude by the same relative amount. So for example let's say I wanted to reduce the scale to half of what it was. Transform Input -> Scale, 0.5, 0.5, 0.5, and then Displacement Amplitude (in default scene) from 2000 to 1000.

- Oshyan