Most visited

Recently visited

Object3D.MorphMode

public static final enum Object3D.MorphMode
extends Enum<Object3D.MorphMode>

java.lang.Object
   ↳ java.lang.Enum<com.viro.core.Object3D.MorphMode>
     ↳ com.viro.core.Object3D.MorphMode


MorphMode represents the method used to calculate and blend morph target data in this Object3D.

Summary

Enum values

Object3D.MorphMode  CPU

Performs morph target blending calculations on the CPU. 

Object3D.MorphMode  GPU

Performs morph target blending calculations on the GPU. 

Object3D.MorphMode  HYBRID

Morph target blending calculations are done on the CPU, but are interpolated back onto the geometry of this model on the GPU. 

Fields

public final String mStringValue

Public methods

static Object3D.MorphMode valueOf(String name)
static final MorphMode[] values()

Enum values

CPU

Object3D.MorphMode CPU

Performs morph target blending calculations on the CPU.

Because calculations are CPU based, there is no pre-defined limit to the number of morph targets your model can have. However, keep in mind that a large number of morph targets can lead to a performance bottleneck on the CPU.

This mode is ideal for models with a large number of morph targets.

GPU

Object3D.MorphMode GPU

Performs morph target blending calculations on the GPU. This is done by plumbing each target's data through vertex array attributes and blending them in the vertex shader.

Because the number of vertex array attributes are limited, Viro only supports at most 7 morph targets on the GPU. If your model contains more than 7 morph targets, Viro will automatically fall back into CPU mode.

This mode is ideal for models with a low number of morph targets.

HYBRID

Object3D.MorphMode HYBRID

Morph target blending calculations are done on the CPU, but are interpolated back onto the geometry of this model on the GPU.

This mode is ideal for animating large numbers of morph target properties through animations with long durations.

Fields

mStringValue

String mStringValue

Public methods

valueOf

Object3D.MorphMode valueOf (String name)

Parameters
name String

Returns
Object3D.MorphMode

values

MorphMode[] values ()

Returns
MorphMode[]

Hooray!