ChaosPro Home
Introduction
What's New
Palettes
Using Formulas
Layering in ChaosPro
Rendering
Fractal Parameter Windows
Windows
Menu
3D Transformations
Animations
Formula Compiler
Writing Formulas
Language Reference
Introduction
Basic Syntax
Datatypes
Constants
Variables
Basics
Variable Scope
Predefined Variables
Predefined Variables - Escapetime
Predefined Variables - Quaternion
alpha
Base1
Base2
Base3
Base4
Basepoint
currentRayIndex
estimatedDistance
e
hasBeenHit
height
index
maxiter
Normal
numiter
pi
pixel
pixelcolor
random
randomrange
screenmax
screenpixel
solid
width
z
Predefined Variables - Attractor
Parameters
Expressions
Operators
Functions
Control Structures
Compiler Directives
Functions
Interface to ChaosPro
Special Features, Notes...
Compatibility
Fractal Type Reference
Tutorials
Appendix
CHAOSPRO 4.0
Release 4.0
.

Parameters - estimatedDistance

Name: estimatedDistance

Type: real

Read/Write: Read/Write

Context: Iteration, Coloring

Description:

This variable allows a formula writer to write formulas using some kind of distance estimation:
The algorithm which is used by ChaosPro in order to render a Quaternion is to shoot a ray from the camera position (observer position) through the current pixel. The ray is scanned:
ChaosPro starts at the camera position and checks whether the object has been hit. If not, it advances by some small step (defined by the "Resolution" parameter) and tests again. This is repeated until the object has been hit.

The small step will be written into this parameter: You may read from it. And you may write into it: If you have some kind of distance estimation algorithm, you can set this variable to the estimated distance: ChaosPro will then advance by that amount on the current ray. If you don't set estimatedDistance, the default value will be used.

If you set estimatedDistance to 0, then you tell ChaosPro: "Object has been hit! Stop now!".