thinkingParticles 7.3

Texturemap Input Functions

When this input type is created in the ExpressionME-L Node, you can connect thinkingParticles' TextureMap Node and use its available data to transfer colors to particles or to use color information from a texture map to control particle simulations.
This input cannot be used to create custom materials or surfaces, but it can be useful for creating realistic simulations that involve extracting colors from textured surfaces.

Global Variable:

texturemap_in_id returns the index of the input you created (starting with 0 excluding Time and On). 

 

texturemap_in_eval 

This function is used to evaluate the color with alpha or without or the mono value (intensity) of a texture map.

Code:

texturemap_in_eval(in_pos, out_scalar)
texturemap_in_eval(in_pos, out_vector)


Parameters:

Parameter Description
in_pos The position for 3D maps or UVW for 2D maps.
out_scalar The mono value.
out_vector A vector of length 3 ([r, g, b]) for color, or a vector of length 4 ([r, g, b, a]) for color with alpha.

 

 

texturemap_in_gradient 

Evaluates an intensity gradient

Code:

texturemap_in_gradient(pos,  value)  

Input:

Parameter Description
pos the position for 3D maps or UVW for 2D maps
value vector[3] for a 3D gradient or vector[2] for a 2D gradient

Output:

Return Description
scalar 0: fail, 1: success

 

texturemap_in_turbulence

This function evaluates a turbulence vector for a TextureMap Node.

Code:

texturemap_in_turbulence(pos, value) 

Input:

Parameter Description
pos the position for 3D maps or UVW for 2D maps
value vector[3] for a 3D gradient or vector[2] for a 2D gradient

Output:

Return Description
scalar 0: fail, 1: success

 

 

©2023, cebas Visual Technology Inc.