Contents | < Browse | Browse >

ColorCube-Operator  Example 

This operator is one of the most powerful and complicated features
of Wildfire. It allows you to add a threedimensional color- or
alpha-space to objects or images.

This is done computing the bounding box ("cube") of the affected object,
putting a different color on each of the 8 points of the "cube"
and performing a 3d-transition between these 8 colors.

Using the alpha-mode only the brightness of the
object is modified. This makes it for example possible
to wrap objects onto images or to add fog to a scene.


Parameters

Name        Possible Values/Unit            Description

Input       TEMP3D1, ..., TEMP3D4           input buffer
Ouput       STREAM, TEMP1, ..., TEMP8,      output buffer
            TEMP3D1, ..., TEMP3D4
TRender     ON, OFF                         indicate that the transformed 3d-temp-buffer
                                            is used for the last time and can be modified
                                            directly to conserve both memory and time
Red,        any (!) value                   color of the selected point
Green,                                      of the cube
Blue
Palette     (gadget)                        select the current point of the cube
Point       (view only)                     shows the coordinates of the current point
XCopy,      (gadget)                        copy the current color along the
YCopy,                                      specified direction
ZCopy
Mode        COLOR, ALPHA                    type of the generated color-space
Mix         0...100                         transparency in COLOR-mode
size        CURRENT, ACTUAL                 compute the size immediately (CURRENT)
                                            or while rendering (ACTUAL)

Notes
A)
Each field of the palette-gadget represents one point of the
"cube" as follows:

       3
         /--------- 4
        / |       /
       /  |      / |         Palette-gadget:
    1  ---------/2 |         _______________
      |   |     |  |        |   |   |   |   |
      |   |     |  |        | 1 | 2 | 3 | 4 |
      |   |-----|--|        |___|___|___|___|
      |  / 7    |  / 8      |   |   |   |   |
      | /       | /         | 5 | 6 | 7 | 8 |
      |/        |/          |___|___|___|___|
       ---------
     5          6


B)
One- and two-point-polygons (e.g. the optional grid created by one of the
Plot-PlugIns) are not affected by this operator.

C)
The size-option controls the transformation-behaviour of the colors.
Using the mode "size=CURRENT" the texture is fixed to the current
object-size and the color "grows" or "shrinks" with the object.
The alternative mode "size=ACTUAL" always caused the colorCube
to be scaled to fit the whole (transformed) object.

D)
Because this operator supports the  PowerPlugs! -concept further
settings can be adjusted from within the global  Render-Settings -Window.