Skip to content

TextureTriplanar

TextureTriplanar#

(Triplanar)

Go to User page.

Description#

Tri Planar Texture Mapping.

Public Attributes#

Type Name Visual Hint Description
long object_space VISUAL_HINT_DEFAULT Set the space in which the object must be considered when computing the projection.
double[3] rotate VISUAL_HINT_ANGLE Set the XYZ rotation of the item.
long rotation_order VISUAL_HINT_DEFAULT Specify on which order the Euler rotations are composed. By default Clarisse's uses YXZ
bool force_planar_projection VISUAL_HINT_DEFAULT When enabled, planar projection is computed for each axis and overrides the projection of each texture.
double[3] right VISUAL_HINT_COLOR Define the texture projected on the X axis
double[3] left VISUAL_HINT_COLOR Define the texture projected on the -X axis
double[3] top VISUAL_HINT_COLOR Define the texture projected on the Y axis
double[3] bottom VISUAL_HINT_COLOR Define the texture projected on the -Y axis
double[3] front VISUAL_HINT_COLOR Define the texture projected on the Z axis
double[3] back VISUAL_HINT_COLOR Define the texture projected on the -Z axis
double blend VISUAL_HINT_PERCENTAGE Control the blend between all the projections.

Inherited Public Attributes#

Type Name Visual Hint Description
bool pass_through VISUAL_HINT_DEFAULT If checked, the current texture is not evaluated and the value of the attribute selected in Pass Through Attribute is directly forwarded.
string master_input VISUAL_HINT_TAG Name of the attribute that will be used as output if Pass Through is enabled.
bool invert VISUAL_HINT_DEFAULT If checked, the texture is inverted.
double opacity VISUAL_HINT_PERCENTAGE Set the opacity of the texture.

CID#

class "TextureTriplanar" "Texture" {
    #version 1
    icon "../icons/object_icons/texture_triplanar.iconrc"
    category "/Texture/Utility"
    doc "Tri Planar Texture Mapping."
    attribute_group "projection" {
        long "object_space" {
            doc "Set the space in which the object must be considered when computing the projection."
            preset "Object (Base)" "0"
            preset "Object (Deformed)" "3"
            preset "Instance" "1"
            preset "World" "2"
            value 0
        }
    }
    attribute_group "projection>advanced" {
        collapsed yes
        ui_weight 1000
        angle[3] "rotate" {
            doc "Set the XYZ rotation of the item."
            animatable yes
            value 0.0 0.0 0.0
        }
        long "rotation_order" {
            doc "Specify on which order the Euler rotations are composed. By default Clarisse\'s uses YXZ"
            preset "XYZ" "8193"
            preset "XZY" "4353"
            preset "YZX" "1"
            preset "YXZ" "8449"
            preset "ZXY" "4097"
            preset "ZYX" "257"
            value 4097
        }
        bool "force_planar_projection" {
            doc "When enabled, planar projection is computed for each axis and overrides the projection of each texture."
            value yes
        }
        bool "legacy_blending" {
            doc "Switch to the old blending behavior."
            hidden yes
            value no
        }
    }
    attribute_group "input" {
        color "right" {
            doc "Define the texture projected on the X axis"
            texturable yes
            animatable yes
            value 1 0.0 0.0
        }
        color "left" {
            doc "Define the texture projected on the -X axis"
            texturable yes
            animatable yes
            value 0.0 1 1
        }
        color "top" {
            doc "Define the texture projected on the Y axis"
            texturable yes
            animatable yes
            value 0.0 1 0.0
        }
        color "bottom" {
            doc "Define the texture projected on the -Y axis"
            texturable yes
            animatable yes
            value 1 0.0 1
        }
        color "front" {
            doc "Define the texture projected on the Z axis"
            texturable yes
            animatable yes
            value 0.0 0.0 1
        }
        color "back" {
            doc "Define the texture projected on the -Z axis"
            texturable yes
            animatable yes
            value 1 1 0.0
        }
        percentage "blend" {
            doc "Control the blend between all the projections."
            texturable yes
            animatable yes
            slider yes
            numeric_range yes 0.0 1
            ui_range yes 0.0 1
            value 0.0
        }
    }
    set "master_input" {
        private no
        hidden no
        saveable yes
        texturable no
        animatable no
        slider no
        numeric_range no 0.0 1
        ui_range no 0.0 1
        dg_active yes
        dg_cyclic no
        dirtiness_pass_through no
        read_only no
        shading_variable no
        experimental no
        advanced no
        overriden no
        promote_attribute no
        allow_expression yes
        localizable yes
        value "x_texture"
    }
}