General

  • 0 Replies
  • 102 Views

0 Members and 1 Guest are viewing this topic.

Offline mclarekin

  • *
  • Moderator
  • ******
  • Posts: 594
« on: March 21, 2019, 05:36:39 AM »
This child board is set up to contain snippets of code that can be used to produce different color outputs for a point

There are two types of color outputs from the fractal maths  :- 

- color that is outputted as a vec3(R,G,B)
- single float colorValue; that gets the points color assigned from a palette

color functions can be divided into three types:

- color derived from the original point position (point being iterated)
- color derived during the iteration
- color derived at termination

the first and last are cheap as we are not doing "color maths" at every iteration, however they are limited in the color patterns  they can produce (but have their uses)

color derived during the iteration is generally the best and it's cost can sometimes be reduced by choosing just a few iterations for the "color maths" the rest of the iterations just check a condition i.e    is  i < Max_Color_Iterations. The most common function for deriving color during the iteration loop is  minimum orbitTrap, where each iteration we are checking the distance ( or distance squared) from something in 3D space like the origin (0,0,0) and recording the smallest value we get, this decides on the color.


Linkback: https://fractalforums.org/color-snippets/78/general/2699/
« Last Edit: March 24, 2019, 09:46:15 PM by 3DickUlus »


xx
Question about usage in general

Started by Xerilon on Mandelbulb3d

11 Replies
718 Views
Last post August 01, 2018, 04:44:11 AM
by Kalter Rauch
xx
General information about Mandel Machine

Started by Dinkydau on Mandel Machine

4 Replies
578 Views
Last post May 05, 2018, 01:15:57 PM
by julofi
xx
General continuous iteration count + exterior distance estimation

Started by gerrit on Fractal Mathematics And New Theories

4 Replies
174 Views
Last post August 30, 2019, 08:02:15 AM
by gerrit