Share

vrdTriTexture

class vrdTriTexture

(Inherits vrdSceneObject)

This class is used for all triplanar mapping based texture properties.

The Material base class.

class TextureMode
UVCoordinates

TriPlanar

Functions

vrdTriTexture.getPatternRepeat()

Gets the repeat pattern factor.

Returns:Current used repeat pattern factor.
Return type:QVector2D

vrdTriTexture.getPatternRotation()

Gets the pattern rotation.

Returns:Current used pattern rotation.
Return type:float

vrdTriTexture.getTextureMode(void_parameter)

Gets the texture placement approach.

Parameters:void_parameter (None) –
Returns:The current texture placement approach.
Return type:vrdTriTexture.TextureMode

vrdTriTexture.getTextureSizeMM(void_parameter)

Gets texture size in millimeter.

Parameters:void_parameter (None) –
Returns:Current texture size in millimeter.
Return type:QVector2D

vrdTriTexture.getTriplanarBlend(void_parameter)

Gets the range for overlapping areas of the planar projection.

Parameters:void_parameter (None) –
Returns:The current used range for overlapping areas
Return type:float

vrdTriTexture.getTriplanarXOffset()

Gets the position of the texture’s pattern by the set value in the U and V for X projection direction.

Returns:The current used position of the texture’s pattern by the set value in the U and V for X projection direction.
Return type:QVector2D

vrdTriTexture.getTriplanarXRepeat()

Gets how many times the texture is repeated in U and V for the X projection direction.

Returns:Current used value how many times the texture is repeated in U and V for the X projection direction.
Return type:QVector2D

vrdTriTexture.getTriplanarXRotation()

Gets the projection orientation in the U and V for X projection direction.

Returns:Current used rotation angle in the U and V for X projection direction.
Return type:float

vrdTriTexture.getTriplanarYOffset()

Gets the position of the texture’s pattern by the set value in the U and V for Y projection direction.

Returns:The current used position of the texture’s pattern by the set value in the U and V for Y projection direction.
Return type:QVector2D

vrdTriTexture.getTriplanarYRepeat()

Gets how many times the texture is repeated in U and V for the Y projection direction.

Returns:Current used value how many times the texture is repeated in U and V for the Y projection direction.
Return type:QVector2D

vrdTriTexture.getTriplanarYRotation()

Gets the projection orientation in the U and V for Y projection direction.

Returns:Current used rotation angle in the U and V for Y projection direction.
Return type:float

vrdTriTexture.getTriplanarZOffset()

Gets the position of the texture’s pattern by the set value in the U and V for Z projection direction.

Returns:The current used position of the texture’s pattern by the set value in the U and V for Z projection direction.
Return type:QVector2D

vrdTriTexture.getTriplanarZRepeat()

Gets how many times the texture is repeated in U and V for the Z projection direction.

Returns:Current used value how many times the texture is repeated in U and V for the Z projection direction.
Return type:QVector2D

vrdTriTexture.getTriplanarZRotation()

Gets the projection orientation in the U and V for Z projection direction.

Returns:Current used rotation angle in the U and V for Z projection direction.
Return type:float

vrdTriTexture.getUniformRepeat(void_parameter)

Sets if the texture is repeated in U and V equal for each projection direction.

Parameters:void_parameter (None) –
Returns:Current state of this approach
Return type:bool

vrdTriTexture.setPatternRepeat(patternRepeat)

Sets the repeat pattern factor.

Parameters:patternRepeat (QVector2D) – the new repeat pattern factor.

vrdTriTexture.setPatternRotation(rotation)

Sets the pattern rotation.

Parameters:rotation (float) – the new pattern rotation.

vrdTriTexture.setTextureMode(type)

Defines how a texture is placed on the surface, whether it uses UV Coordinates or Triplanar projection. By using UV coordinates, there are no other parameters to be set. Using the Triplanar Texture Mode exposes more options.

Parameters:type (vrdTriTexture.TextureMode) – Sets the new texture placement approach.

vrdTriTexture.setTextureSizeMM(size)

Sets texture size in millimeter.

Parameters:size (QVector2D) – New texture size in millimeter.

vrdTriTexture.setTriplanarBlend(blend)

Sets the range for overlapping areas of the planar projection.

Parameters:blend (float) – The new range for overlapping areas

vrdTriTexture.setTriplanarXOffset(offset)

Moves the position of the texture’s pattern by the set value in the U and V for X projection direction.

Parameters:offset (QVector2D) – The new position of the texture’s pattern by the set value in the U and V for X projection direction.

vrdTriTexture.setTriplanarXRepeat(repeat)

Sets how many times the texture is repeated in U and V for the X projection direction.

Parameters:repeat (QVector2D) – New value how many times the texture is repeated in U and V for the X projection direction.

vrdTriTexture.setTriplanarXRotation(rotation)

Sets the projection orientation in the U and V for X projection direction.

Parameters:rotation (float) – New rotation angle in the U and V for X projection direction.

vrdTriTexture.setTriplanarYOffset(offset)

Moves the position of the texture’s pattern by the set value in the U and V for Y projection direction.

Parameters:offset (QVector2D) – The new position of the texture’s pattern by the set value in the U and V for Y projection direction.

vrdTriTexture.setTriplanarYRepeat(repeat)

Sets how many times the texture is repeated in U and V for the Y projection direction.

Parameters:repeat (QVector2D) – New value how many times the texture is repeated in U and V for the Y projection direction.

vrdTriTexture.setTriplanarYRotation(rotation)

Sets the projection orientation in the U and V for Y projection direction.

Parameters:rotation (float) – New rotation angle in the U and V for Y projection direction.

vrdTriTexture.setTriplanarZOffset(offset)

Moves the position of the texture’s pattern by the set value in the U and V for Z projection direction.

Parameters:offset (QVector2D) – The new position of the texture’s pattern by the set value in the U and V for Z projection direction.

vrdTriTexture.setTriplanarZRepeat(repeat)

Sets how many times the texture is repeated in U and V for the Z projection direction.

Parameters:repeat (QVector2D) – New value how many times the texture is repeated in U and V for the Z projection direction.

vrdTriTexture.setTriplanarZRotation(rotation)

Sets the projection orientation in the U and V for Z projection direction.

Parameters:rotation (float) – New rotation angle in the U and V for Z projection direction.

vrdTriTexture.setUniformRepeat(s)

Sets if the texture is repeated in U and V equal for each projection direction.

Parameters:s (bool) – Enable or disable this approach

Was this information helpful?