Most visited

Recently visited

Object3D.Type

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

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


Supported model formats for loading into an Object3D.

Summary

Enum values

Object3D.Type  FBX

FBX model format. 

Object3D.Type  GLB

GLTF binary model format. 

Object3D.Type  GLTF

GLTF model format. 

Object3D.Type  OBJ

OBJ model format. 

Fields

public final int id

Public methods

static Object3D.Type fromString(String sType)
static Object3D.Type valueOf(String name)
static Object3D.Type valueOf(int id)
static final Type[] values()

Enum values

FBX

Object3D.Type FBX

FBX model format. FBX files need to be converted to VRX via the ViroFBX script. Textures should reside in the same folder as the VRX file. This format supports skeletal and keyframe animation, and diffuse, specular, and normal maps.

GLB

Object3D.Type GLB

GLTF binary model format. Like GLTF, GLB files do not need ViroFBX script conversion. Associated resources like textures should reside their relative paths as specified in the JSON GLTF manifest (which should have been Base64 encoded into the GLB file).

Viro currently only supports static GLTF models. Animated model (skeletal and keyframe) support is forthcoming.

GLTF

Object3D.Type GLTF

GLTF model format. GLTF files do >not need ViroFBX script conversion: they can be directly loaded into your application. Associated resources like textures should reside in their relative paths as specified in the .gltf JSON file.

Viro currently only supports static GLTF models. Animated model (skeletal and keyframe) support is forthcoming.

OBJ

Object3D.Type OBJ

OBJ model format. MTL files are also supported. MTL and textures should reside in the same folder as the OBJ file. This format supports diffuse, specular, and normal maps.

Fields

id

int id

Public methods

fromString

Object3D.Type fromString (String sType)

Parameters
sType String

Returns
Object3D.Type

valueOf

Object3D.Type valueOf (String name)

Parameters
name String

Returns
Object3D.Type

valueOf

Object3D.Type valueOf (int id)

Parameters
id int

Returns
Object3D.Type

values

Type[] values ()

Returns
Type[]

Hooray!