Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Fancy Bullets
typecircle
  • color_a - The first color
  • color_b - The second color
  • mult_a - Multiplier for the first color
  • mult_b - Multiplier for the second color
  • result_alpha - The alpha for the result; if not specified, the resulting alpha taken from the first color)
  • mode - Which output should be considered as the output of the main texture (0 - result_a, 1 - result_b, 2 - product, 3 - sum, 4 - difference, 5 - power, 6 - division, 7 - Minimum, 8 - Maximum, 9 - absolute difference), 10 - Lower intensity color, 11 - Greater intensity color
  • product - (color_a*mult_a)*(color_b*mult_b)
  • division - (color_a*mult_a)/(color_b*mult_b)
  • minimum - Min(color_a*mult_a , color_b*mult_b)
  • maximum - Max(color_a*mult_a , color_b*mult_b)
  • sum - (color_a*mult_a)+(color_b*mult_b)
  • difference - (color_a*mult_a)-(color_b*mult_b)
  • result_a - color_a*mult_a
  • result_b - color_b*mult_b
  • red - (color_a*mult_a).r
  • green - (color_a*mult_a).g
  • blue - (color_a*mult_a).b
  • alpha - (color_a*mult_a).a
  • intensity - mult_a*(color_a.r+color_a.g+color_a.b)/3.0
  • power - (color_a*mult_a)^mult_b

 


Example


The middle section of the image is the result of multiplying Texture A (left) by Texture B (right).

...

Fancy Bullets
typecircle
  • operation - The condition check: 0 - equal, 1 - not equal, 2 - greater than, 3 - greater or equal, 4 - less than, 5 - less or equal
  • op_a - The first number to compare
  • op_b - The second number to compare
  • result_true - The color to return if the condition is true
  • result_false - The color to return if the condition is false
  • color - The resulting color

...


Example

Here we combine the checkered and marble textures, and output black where their contours match.

 

 



TexFloatOp

...

Similar to TexAColorOp for floats, it has a whole lot of functions.

...

Fancy Bullets
typecircle
  • float_a - The first number
  • float_b - The second number
  • product - float_a*float_b
  • ratio - float_a/float_b
  • sum - float_a+float_b
  • difference - float_a-float_b
  • power - The first number raised to the power of the second number
  • sin - sin(float_a*float_b)
  • cos - cos(float_a*float_b)
  • asin - asin(float_a*float_b)
  • acos - acos(float_a*float_b)
  • atan - atan(float_a*float_b)
  • atan2 - atan2(float_b, float_a), computes the arctangent of float_b/float_a
  • min - min(float_a, float_b)
  • max - max(float_a, float_b)
  • abs - abs(float_a)
  • ceil - ceil(float_a)
  • exp - exp(float_a)
  • floor - floor(float_a)
  • log - log(float_a)
  • log10 - log10(float_a)
  • sqrt - square root of float_a
  • fmod - fmod(float_a, float_b)
  • average - (float_a+float_b)*0.5
  • tan - tan(float_a)
  • mode - Determines what output to use when no output parameter is specified. Useful if the type of the operation needs to be animatable.

...


TexGradient, TexGradRamp, TexRamp

...

Fancy Bullets
typecircle
  • inHsv - Input texture in HSV format
  • color - Output texture in RGB format

...


TexInvert

...

Returns the input texture's complementary color.

The following scene is rendered by using the scene bundle and uncommenting "vrscenes/map_41 TexInvert.vrscene". 


 


Parameters

Fancy Bullets
typecircle
  • texture - The texture to be inverted
  • invert_alpha - Whether to invert alpha channel also
  • color - The inverted texture color

...

Fancy Bullets
typecircle
  • compatibility_with - This is used to differentiate between textures exported from different applications. The value means : 0 - 3ds Max (this is also the default), 1 - Maya, ...
  • alpha_from_intensity - If 2 - the alpha is forced to 1.0f; 1 - the resulting alpha is the color intensity (if compatibility_with is 0) or the color luminance (if compatibility_with is 1); 0 - the alpha is taken from the bitmap alpha
  • invert - If true, the resulting texture color will be inverted
  • invert_alpha - If true and invert is on, the resulting texture alpha will be inverted too. If false, just the color will be inverted
  • color_mult - A multiplier for the texture color
  • color_offset - An additional offset for the texture color
  • alpha_mult - A multiplier for the texture alpha
  • alpha_offset - An additional offset for the texture alpha
  • nouvw_color - The color when there are no valid uvw coordinates
  • color - The resulting color
  • out_transparency - The resulting transparency
  • out_alpha - The resulting alpha
  • out_intensity - The resulting intensity
  • textures - Textures to layer
  • blend_modes - 0:None, 1:Over, 2:In, 3:Out, 4:Add, 5:Subtract, 6:Multiply, 7:Difference, 8:Lighten, 9:Darken, 10:Saturate, 11:Desaturate, 12:Illuminate
  • alpha - Texture or float for alpha coefficient

...


TexLuminance

...

Returns a single float luminance (0.3R + 0.59G + 0.11B) from input color texture. Note that in V-Ray terms this is different from the "intensity" term, which is (0.33R + 0.33G + 0.33B).

...

Fancy Bullets
typecircle
  • input - Input texture
  • luminance - Output texture with float values

...


TexRaySwitch

...

Use a different texture for different types of rays: shadow, GI, reflection, refraction and default.

...

Fancy Bullets
typecircle
  • default_texture - This texture is used if texture is not set for specific ray type or if the ray type is unknown.
  • shadow_ray_texture - This texture is used for shadow rays.
  • gi_ray_texture - This texture is used for GI rays.
  • reflect_ray_texture - This texture is used for reflection rays.
  • refract_ray_texture - This texture is used for refraction rays.

...


TexRemap

...

Remap an input texture color through some kind of user-defined curve.

The scene is "vrscenes/map_05 TexBitmap & TexRemap.vrscene".

 


Parameters

Fancy Bullets
typecircle
  • type - type of conversion: 0:RemapValue, 1:RemapColor, 2:RemapHSV.
  • float_positions - positions of the given float values
  • float_values - the given float values
  • float_types - interpolation types for the floats (None - 0; Linear - 1; Smooth - 2; Spline - 3)
  • color_positions - the given float values
  • color_colors - the given colors
  • color_types - interpolation types for the colors (None - 0; Linear - 1; Smooth - 2; Spline - 3)
  • red_positions - positions of the given values for the red channel
  • red_values - the given values for the red channel
  • red_types - interpolation types for the red channel (None - 0; Linear - 1; Smooth - 2; Spline - 3)
  • green_positions - positions of the given values for the green channel
  • green_values - the given values for the green channel
  • green_types - interpolation types for the green channel (None - 0; Linear - 1; Smooth - 2; Spline - 3)
  • blue_positions - positions of the given values for the blue channel
  • blue_values - the given values for the blue channel
  • blue_types - interpolation types for the blue channel (None - 0; Linear - 1; Smooth - 2; Spline - 3)
  • hue_positions - positions of the given values for the hue channel
  • hue_values - the given values for the hue channel
  • hue_types - interpolation types for the hue channel (None - 0; Linear - 1; Smooth - 2; Spline - 3)
  • saturation_positions - positions of the given values for the saturation channel
  • saturation_values - the given values for the saturation channel
  • saturation_types - interpolation types for the saturation channel (None - 0; Linear - 1; Smooth - 2; Spline - 3)
  • value_positions - positions of the given values for the value channel
  • value_values - the given values for the value channel
  • value_types - interpolation types for the value channel (None - 0; Linear - 1; Smooth - 2; Spline - 3)
  • alpha_from_intensity - If true, the resulting alpha is the color intensity; otherwise the alpha is taken from the colors
  • out_value - the output value, depending on input_value and color params
  • out_color - the output color, depending on input_value/input_color and float params