Skip to content

Commit

Permalink
color text, will need someone else to get it into shape
Browse files Browse the repository at this point in the history
  • Loading branch information
mclarekin committed Aug 23, 2017
1 parent 85b84e9 commit b32e82d
Show file tree
Hide file tree
Showing 11 changed files with 93 additions and 0 deletions.
Binary file added img/manual/media/DE_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/manual/media/aux_color_parameters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/manual/media/box_fold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/manual/media/plane_bias.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/manual/media/radius.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/manual/media/radius_squared.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/manual/media/sphere_fold_minR2_maxR2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/manual/media/with_iter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/manual/media/without_iter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/manual/media/xyz_bias.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions mandelbulber2/manual/chapters/miscellaneous.tex
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,98 @@ \subsection{Hints}\label{Hints}



\paragraph{Color functions}

There are various ways of creating the color of each point in the set, and the following color components can be mixed together to make more complicated colorings. Coloring possibilities can be just as complex as fractal formulas.

The examples below are basic ways of creating color components. These examples are with a standard mandelbox, (the results can be very different with other formulas.)

\textbf{aux.color}
aux.color is a cumulative number that is in many formulas and transforms, where there is conditional folding, e.g. box folds and sphere folds. Note that color based on conditional functions can cause unwanted cuts in color layout.

The parameter controls are generally like this :

\simpleImageWithCaptionFullWidth{img/manual/media/aux_color_parameters.png}
{Aux.color parameters}
{aux_color_parameters_vary_VCL}

When the iteration loop is running, this number is increased each time a condition is met. The result is dependent on how many times before termination that the condition is met..

Currently there are two types of algorithms that use aux.color. Example maths:

Box Fold
if (z > limit OR z < -limit) aux.color += boxFoldComponent.

Note that the box fold component can create speckly areas with mandelbox type fractals.

Sphere Fold.
if (rr < minR2) aux.color += minR2Component.
else if (rr < maxR2) aux.color += maxR2Component.

And therefore if(rr> maxR2 ) there is no addition of a component.

With a standard mandelbox we need to cut open the fractal to see the result of this component acting on their own. Red is the minR2 component and blue the maxR2 component.


\twoImagesWithTwoCaptionsFullWidth{img/manual/media/box_fold.png}
{Box fold coloring component}
{box_fold}
{img/manual/media/sphere_fold_minR2_maxR2.png}
{Sphere fold minR2 and maxR2 coloring component}
{sphere_fold_minR2_maxR2}


\textbf{Radius} or \textbf{radius squared}

A component value is added based on the distance of the point from the origin at termination.


\twoImagesWithTwoCaptionsFullWidth{img/manual/media/radius.png}
{Radius coloring component}
{radius}
{img/manual/media/radius_squared.png}
{Radius squared coloring component}
{radius_squared}

\textbf{Distance Estimation (DE)} (sliced view)

A component value is added based on the DE value of the point at termination.

\simpleImageWithCaptionFullWidth{img/manual/media/DE_color.png}
{DE color component}
{DE_color}

\textbf{Axis Bias}

These functions are tools to globally manipulate/distort the color.
Examples maths:

$XYZ_bias component = abs(z.x) \ast biasScale.x;$
$Plane_bias component = z.y \\ast z.z \ast biasScale.y;$

\twoImagesWithTwoCaptionsFullWidth{img/manual/media/xyz_bias.png}
{XYZ coloring component}
{xyz_bias}
{img/manual/media/plane_bias.png}
{Plane bias coloring component}
{plane_bias_squared}

\textbf{Iteration count}

The final color value, after adding up all the components, is scaled by a function of the iteration count.

Example maths:

$colorValue = sum_of_all_components * ( 1.0 + iterScale / ( iter + 1.0));$

Left image below is with iterScale = 0.0, the right image has the function disabled.

\twoImagesWithTwoCaptionsFullWidth{img/manual/media/with_iter.png}
{With iterartion count coloring component}
{with_iter}
{img/manual/media/without_iter.png}
{Without iterartion count coloring componen}
{without_iter}



0 comments on commit b32e82d

Please sign in to comment.