Class: Obj3

XComponent.Obj3()

new Obj3()

Main scene Object, like THREE.Mesh, THREE.Points, etc.

Typically, if Visual.vtype is mesh, sys.Thrender will create a THREE.Object3D according to this component.

See also xv.ecs.sys.Thrender.createObj3s.

Source:

Members

affines

Properties:
Name Type Description
affines array

Elements are same as 'transform', but used by xtweener, and mart4 is used for combined results; default must be undefined, created by XTweener

Deprecated:
  • moved to CmpTween?
Source:

box

Properties:
Name Type Description
box array

geometry constructor parameters, always not null

Source:

channel

Properties:
Name Type Description
channel LayerChannel

channel: [0 ~ 15]. User shouldn't use it. Use chennels to set visible channels.

Source:

datum

Properties:
Name Type Description
datum array

used as user custom data

Source:

filter

2020.07.29 - extending for filtering data. Test case: GeoPrism in virtual-area.html.

Properties:
Name Type Description
filter string

data filter (lambda?)

Source:

geom

Properties:
Name Type Description
geom Obj3Type

geometry type

Source:

group

Parent group's engity id TODO in version 1.0, only works for HudGroup parent.

Properties:
Name Type Description
group string

entity id of parent group

Source:

invisible

Properties:
Name Type Description
invisible array

not visible, default false

Source:

layers

Properties:
Name Type Description
layers LayerChannel

channel mask managed by x-visual. User shouldn't use it. Use chennels to set visible channels.

Source:

lightened

Only meaningful to meshes with x-shaders acceptiong light parameters, e.g. texPrism, colorArray or so.

Properties:
Name Type Description
lightened int

is this object been affected by xlight,

Source:

m0

Properties:
Name Type Description
m0 mat4

mesh's matrix snapshot at the biginning of all sequences actived.

Source:

mesh

Properties:
Name Type Description
mesh array

THREE.Mesh for BOX etc. or Array of vertices for POINTS

Source:

mi

Properties:
Name Type Description
mi mat4

mat4 of combined transformation

Source:

mi_z

Properties:
Name Type Description
mi_z mat4

mi backup (later can be used for keeping results)

Source:

occluding

Properties:
Name Type Description
occluding int

0: 1 << LayerChannel.NONE,

Source:

transform

2020.06.01 used as buffer for transform operation, see CanvTex#update(). FIXME but can this merge with m0 ?

Properties:
Name Type Description
transform array

{translate, scale, rotate, shear, reflect, mat4}, default unused

Source:

unforms

Properties:
Name Type Description
unforms array

uniforms for shader

Source: