Author Topic: Scaling Down A Fractal Terrain  (Read 350 times)

Offline jackblack

  • Member
  • *
  • Posts: 72
Scaling Down A Fractal Terrain
« on: December 01, 2018, 03:35:50 AM »
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.

Offline Dune

  • Member
  • *
  • Posts: 15191
    • www.ulco-art.nl
Re: Scaling Down A Fractal Terrain
« Reply #1 on: December 01, 2018, 05:48:15 AM »
How about decreasing the displacement by half? Or use a transform shader after the fractal terrain and decrease Y by half....

Offline WASasquatch

  • Member
  • *
  • Posts: 3414
Re: Scaling Down A Fractal Terrain
« Reply #2 on: December 01, 2018, 06: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.
« Last Edit: December 01, 2018, 06:46:41 AM by WASasquatch »

Offline jackblack

  • Member
  • *
  • Posts: 72
Re: Scaling Down A Fractal Terrain
« Reply #3 on: December 01, 2018, 07: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.

Offline WASasquatch

  • Member
  • *
  • Posts: 3414
Re: Scaling Down A Fractal Terrain
« Reply #4 on: December 01, 2018, 07:06:34 PM »
Things in Final Position cannot be scaled/altered.

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 13182
  • Holy snagging ducks!
Re: Scaling Down A Fractal Terrain
« Reply #5 on: December 03, 2018, 12:38:19 AM »
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

 

anything