mandelbulber2 icon indicating copy to clipboard operation
mandelbulber2 copied to clipboard

heightmap use in formulas

Open mclarekin opened this issue 3 years ago • 7 comments

look at implementing heightmap difs

mclarekin avatar Feb 21 '22 06:02 mclarekin

We don't need this because we have Displacement maps and Fractalize texture. It is more general, because we can apply heightmaps to any fractal or primitive. Implemeting of heightmaps info fractal formula will not fit to actual program structure.

buddhi1980 avatar Feb 21 '22 17:02 buddhi1980

Formula: ABoxMapSFold

Description:

A modified "Amazing Box" by an idea of Aexion, the radius for the sphere folding is modified by a 2d pixelmap, creating surface pattern on spherefold areas:

x = abs(x+Fold) - abs(x-Fold) - x y = abs(y+Fold) - abs(y-Fold) - y z = abs(z+Fold) - abs(z-Fold) - z Mvec = (GetRGBfromSphereMap(@x, Map_nr) + Map_offset) * Map_scale rr = Sqr(x + Mvec[0]) + Sqr(y + Mvec[1]) + Sqr(z + Mvec[2]) if rr < sqr(Min_R) then m = Scale/sqr(Min_R) else if rr < 1 then m = Scale/rr else m = Scale x = x * m + Cx y = y * m + Cy z = z * m + Cz

mclarekin avatar May 09 '22 02:05 mclarekin

@mclarekin the idea of using heightmap inside iteration loop is very interesting. Do you have any example images showing the results?

buddhi1980 avatar May 29 '22 04:05 buddhi1980

@mclarekin the idea of using heightmap inside iteration loop is very interesting. Do you have any example images showing the results?

buddhi1980 avatar May 29 '22 04:05 buddhi1980

no examples, but i can visualize how it should work to experiment we just need some height map data accessible in a formula code and probably test it first in an asurf.

mclarekin avatar May 29 '22 06:05 mclarekin

I'm asking for examples to see if it is really worth to implement. It would require a lot of changes in the code.

buddhi1980 avatar May 29 '22 08:05 buddhi1980

i will look at making some examples. But that is a few months away as I have a lot of other things i want to finish first.

mclarekin avatar May 29 '22 09:05 mclarekin