### colouring by heightmap surface curvature

• 4 Replies
• 491 Views

0 Members and 1 Guest are viewing this topic.

• 3f
• Posts: 1449

#### colouring by heightmap surface curvature

« on: September 29, 2017, 03:15:26 PM »
http://graphics.zcu.cz/sscurvature.html has a reference implementation for Screen Space Curvature as a Unity shader (afaict), I ported it to C++ and tried it out on Mandelbrot iteration data considered as a heightmap (z = log(iteration count)).

Some results attached.  Seems mean curvature looks different to Gauss curvature, both look a bit like distance estimation colouring.

But it doesn't look as good as I'd hoped.

• 3f
• Posts: 2096

#### Re: colouring by heightmap surface curvature

« Reply #1 on: October 09, 2017, 02:30:06 AM »
Perhaps a problem is the numerical second derivatives in the curvature formula.

I wonder if an analytic formula for curvature can be found  by tracking $$d^2z_n/dc^2$$ during the iterations similar to tracking the first derivative with the analytic distance estimation method.

• 3f
• Posts: 2096

#### Re: colouring by heightmap surface curvature

« Reply #2 on: October 12, 2017, 01:12:43 AM »
I tried something which is probably not directly "curvature" but uses the second derivative.
As the usual DE is $$DE = |G(c)/G'(c)|$$ with G the Douady Hubbard potential (exp(-smoothed iteration)) I
tried $$DDE = |G/G''|$$ with G'' second dervative computed analytically in the iterations.

Results are perhaps interesting, looking like DE but with little "swamp lights" which persists to any depth I've checked.
Below two examples; left is usual DE, right "DDE". Tweaking it by for example $$DDE = |G'/G''|$$ looks similar.

• 3f
• Posts: 2096

#### Re: colouring by heightmap surface curvature

« Reply #3 on: October 12, 2017, 04:29:58 AM »
Actually I think G'/G'' looks better than G/G''. The former is probably a more natural generalization of the DE.
$$DE = 1/(log(G))'$$ and the modified DDE (G'/G'') is just $$DDE = 1/(log(G'))'$$, whereas G/G'' is nothing in particular.

Below example of G/G'' (top) and G'/G''.

• 3f
• Posts: 2096

#### Re: colouring by heightmap surface curvature

« Reply #4 on: October 12, 2017, 05:23:19 AM »
Another interesting aspect of the DDE = G'/G'' is that it seems to show (better) the minis embedded in the filaments.
See below example (left DE, right DDE).

### Similar Topics

###### mandelbrot heightmap

Started by birational on Fractal Image Gallery

1 Replies
129 Views
August 28, 2018, 03:21:53 PM
by Bill Snowzell
###### Heightmap Hybrid

Started by Kalter Rauch on Fractal Image Gallery

2 Replies
131 Views
June 16, 2018, 07:35:51 PM
by Kalter Rauch
###### Kali's Amazing Surface

Started by 3DickUlus on Fractal Image Gallery

0 Replies
358 Views
April 06, 2018, 02:07:41 AM
by 3DickUlus
###### Sub Surface Scattering and 4k Fractals

Started by scaprendering on Fractal Image Gallery

4 Replies
371 Views
February 19, 2020, 03:47:46 AM
by fusha
###### Using Marching Cubes to get the dimension of a surface

Started by sjhalayka on Share a fractal

7 Replies
346 Views
November 29, 2019, 11:57:11 PM
by sjhalayka