Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D Color To Float Preview Basic Inputs Outputs
Here, the color values can be input into the Node.
Here you can select the component to output. You can select from the following options:
- Red (x), Green (y), Blue (z), Alpha: The selected color component is provided by the Result output. Since the colors are simple vectors, vectors can, for example, also be used to input positions or directions and individual components can be selected. Red (x) then represents the X component, Green (y) the Y and Blue (z) the Z component of the vector. If Mode is set to Alpha – but no alpha channel exists – a value of 1 will be output.
- Average: This is the sum of all color components divided by the number of components. If Use Alpha is enabled, the alpha channel will be added as would an RGB channel and the result will be divided by four instead of three.
- Length: This calculation method is particularly interesting for vectors that define a distance between two positions. The distance between the positions will then be provided by the Result output. Using this mode for color vectors or alpha channels does not make much sense.
- Squared Length: This reflects the Length mode only that the result is not squared in the end. Several mathematical calculations take place within the vector calculation where squared distances have to be used. This option can deliver fast results in these cases. Using this mode in conjunction with colors or alpha channels does not make any sense.
- Luminance: Each person perceives colors differently. This effect cannot be remedied by a simple squared calculation of the color components. For example, greens can appear brighter than reds and reds in turn lighter than blues. This perception of brightness flows into the calculation of the brightness via a formula. Alpha channels will be ignored.
- Sum: Adds all color components together. If Use Alpha is enabled, the alpha channel’s brightness will also be included.
- Min/Max: Only the smallest or largest measured component of the color or the vector will be output. If Use Alpha is enabled, the brightness in the alpha channel will also be compared with the RGB color channels. Note that if no alpha channel is present, this will always be set to a value of 1. This can falsify the Min/Max output. If you know that you are dealing with a normal vector or color without alpha, it’s better to leave the Use Alpha option disabled.
Enables (or disables) the use of an alpha channel. If none exists, a value of 1 will automatically be used for the alpha channel.