Planetside Software Forums

General => Terragen Discussion => Topic started by: DJ on March 27, 2009, 10:54:49 AM

Title: Problems with Voronoi 3d Cell Noise
Post by: DJ on March 27, 2009, 10:54:49 AM
I want to use a Voronoi 3D Cell scalar noise as a base for my terrain.
It works fine but I would like to smooth the sharp edges and remove the artifact-structures on the vertical surfaces.
Any ideas ?

Thx DJ

[attachthumb=#]
Title: Re: Problems with Voronoi 3d Cell Noise
Post by: Goms on March 27, 2009, 11:07:55 AM
Good question! I worked on that for a while but couldn't get a satisfying result.
Title: Re: Problems with Voronoi 3d Cell Noise
Post by: buzzzzz1 on March 27, 2009, 11:19:32 AM
Have you tried either of the erosion operators?
Title: Re: Problems with Voronoi 3d Cell Noise
Post by: DJ on March 27, 2009, 11:55:04 AM
Thank you, buzzzzz1.
IT WORKS!
I tried smooth and erode:

smooth:
[attachthumb=#]


erode:
[attachthumb=#]


DJ
Title: Re: Problems with Voronoi 3d Cell Noise
Post by: cyphyr on March 27, 2009, 12:00:36 PM
wow that's pretty impressive, interesting how similar both operators are. These will only work on heightfields yes?
richard
Title: Re: Problems with Voronoi 3d Cell Noise
Post by: Goms on March 27, 2009, 12:02:27 PM
But how do you do it without converting it to a heightfield?
This could be interesting.
Title: Re: Problems with Voronoi 3d Cell Noise
Post by: DJ on March 27, 2009, 12:10:20 PM
You have to convert it to a heightfield, afterwards you re-convert it to a shader:

[attach=#]

DJ

Title: Re: Problems with Voronoi 3d Cell Noise
Post by: Mohawk20 on March 27, 2009, 12:21:52 PM
And since you have a fractal noise to base the heightfield on, you can make the heightfield as large as you want without loosing any detail...
Title: Re: Problems with Voronoi 3d Cell Noise
Post by: Mr_Lamppost on March 27, 2009, 08:43:26 PM
Yes you can soften the edges of the Voronoi cells without converting to a height field. 

Not perfect but here's a method I posted last year:

http://www.terragen.org/index.php?topic=4454.msg35238#msg35238