Planetside Software Forums

General => Terragen Discussion => Topic started by: cbalaskas on April 14, 2007, 07:19:11 PM

Title: "Curves" on a power fractal?
Post by: cbalaskas on April 14, 2007, 07:19:11 PM
Is it possible to affect a power fractal with a device (or series thereof) in a manner like "curve" in WM? Is it possible with functions (which I'm incredibly ignorant of)?
Title: Re: "Curves" on a power fractal?
Post by: old_blaggard on April 14, 2007, 10:44:58 PM
Yes, it should technically be possible with functions.  You can also get a little bit of curving by increasing the warp in the distribution shader.  I've actually been working on a project that uses parametric functions to define a repeating spiral shape in order to simulate the coriolis effect.
Title: Re: "Curves" on a power fractal?
Post by: cbalaskas on April 14, 2007, 11:01:15 PM
I mean as in a height curve transform, to make canyons and glaciation and so forth. I see what you are saying though.
Title: Re: "Curves" on a power fractal?
Post by: bigben on April 15, 2007, 04:47:25 PM
You can plug it into a colour adjust shader which will provide you with black/white level and gamma adjustment (a single curve). With some clever combinations you could be able to produce different variations
Title: Re: "Curves" on a power fractal?
Post by: cbalaskas on April 15, 2007, 06:12:31 PM
bigben, gave your suggestion a try. It only seems to affect the color of the fractal, and not the heightfield itself.
Title: Re: "Curves" on a power fractal?
Post by: bigben on April 16, 2007, 12:42:29 AM
yes... I was thinking more along the lines of a fractal used as a displacement function of a surface shader  ;)  This works but it's not a method you'd use for a terrain.
Title: Re: "Curves" on a power fractal?
Post by: cbalaskas on April 16, 2007, 01:43:00 AM
Hey, that kinda worked! I'd really love to figure out how to have defined steps though. Thanks if anyone can figure that out for the math challenged.
Title: Re: "Curves" on a power fractal?
Post by: Oshyan on April 16, 2007, 02:34:48 AM
There is currently no easy way to do this on the built-in procedural devices. BigBen's suggestion would work to some degree although it would be a little tricky to setup. The Colour Adjust shader does only affect the color, not the displacement, but if you used it on a Power Fractal that then fed into the Displacement input of a Default Shader or the Shader input of a Heightfield Generator, etc. (all this within the Terrain group), then it should work.

- Oshyan