Anatomist commands reference: TexturingParams


TexturingParams

New in Anatomist 3.0
Sets texture mapping parameters
Attribute: Type: Description:
objects int_vector target objects to change parameters on
texture_index int (optional) texture number (for objects with several textures), default: 0
mode string (optional) textures color mixing mode: geometric, linear, replace, decal, blend, add, combine, or linear_on_defined. These values correspond both to OpenGL texture mapping functions, and also to fusion modes (for 2D fusions objects) (see also rate).
New in Anatomist 4.3: A bunch of new fusions mixing modes have appeared, allowing to perform various masking modes for instance: linear_A_if_A_white, linear_A_if_B_white (synonim to linear_on_defined), linear_A_if_A_black, linear_A_if_B_black, linear_A_if_A_opaque, linear_A_if_B_transparent, linear_B_if_B_opaque, linear_B_if_A_transparent, max_channel, min_channel, max_opacity, min_opacity.
New in Anatomist 4.4: New mixing modes: geometric_lighten (geometric mixing of (1 - colors)), geometric_sqrt: formerly geometric mode, but the geometric mode now does not "normalize" the multiplication by a square root.
filtering string (optional) texture filtering: nearest (default) or linear
generation string (optional) texture generation mode (textures automatically generated by OpenGL completely replace the current texture: thus this option has no real interest but looks nice): none (default), object_linear, eye_linear, sphere_map, reflection_map, normal_map. (these values directly correspond to OpenGL functions)
generation_params_1 float_vector (optional) Parameters associated to texture generation for the first texture coordinate.
Such parameters are only useful when in object_linear or eye_linear mode. It is a 4 float vector defining the direction of the projection of the first texture coordinate according to real 3D coordinates in the mesh.
Parameters specified here only affect the current generation mode (the one given by the generation parameter, or the mode currently in use if generation is not specified).
generation_params_2 float_vector (optional) Parameters associated to texture generation for the second texture coordinate.
generation_params_3 float_vector (optional) Parameters associated to texture generation for the third texture coordinate.
For now 3D textures are not supported, so this parameter is useless.
rate float (optional) mixing rate for textures, in modes supporting it (linear-based modes for instance) (object - texture weighting). This parameter has no effect for some objects.
interpolation string (optional) colors interpolation space on textures: palette (default) or rgb.

Back to commands index