TransformSpaceMap

Overview

The TransformSpaceMap is used to transform data from one space to another. For example, binding an AttributeMap to the input parameter, we can transform P from render space to world space or N from world space to local tangent space. For an in depth explanation of the instance level spaces see the how-to guide.


Attribute Reference

General attributes

camera

Camera
default: None

an alternate camera to use when transforming to/from 'camera' space

concatenate_instance_level_transforms

Bool
default: True

When true, instance level transforms below the specified one are concatenated otherwise only the selected level's transform is used

from_space

Int enum
  0 = “render” (default)
  1 = “camera”
  2 = “world”
  3 = “screen”
  4 = “object”
  5 = “local tangent”
  6 = “instance object transform”
  7 = “instance level 0”
  8 = “instance level 1”
  9 = “instance level 2”
  10 = “instance level 3”
  11 = “instance level 4”

the space to transform from

input

Vec3f bindable
default: [ 1, 1, 1 ]

the input value to transform

input_type

Int enum
  0 = “point”
  1 = “vector” (default)
  2 = “normal”

the type of input value provided

object

Geometry
default: None

an alternate object to use when transforming to/from 'object' space

to_space

Int enum
  0 = “render”
  1 = “camera”
  2 = “world” (default)
  3 = “screen”
  4 = “object”
  5 = “local reference tangent”
  6 = “instance object transform”
  7 = “instance level 0”
  8 = “instance level 1”
  9 = “instance level 2”
  10 = “instance level 3”
  11 = “instance level 4”

the space to transform to

use_custom_window_coordinates

Bool
default: False

used to apply non-uniform scaling to projection

window_x_max

Float
default: 1.0

maximum projected x coordinate

window_x_min

Float
default: -1.0

minimum projected x coordinate

window_y_max

Float
default: 1.0

maximum projected y coordinate

window_y_min

Float
default: -1.0

minimum projected y coordinate