Class: Model3D

shf3d.Model3D

Class representing a 3D model loaded from file.

Currently supported file formats:

  • Wavefront OBJ along with MTL for material definitions (note that textures in the MTL must be supplied in JPEG or PNG format).

new shf3d.Model3D ()

Properties:
Name Type Description
autoNormals bool

(default: false) If true, the model's normal vectors are replaced by auto-generated normal vectors. Use this if the shading of the model seems wrong. If the model supplies no normal vectors, auto-generated normal vectors are used, regardless of this property's value.

source string

The URL of the source file to load. Referenced MTL files and textures are fetched automatically.

status string

[readonly] The current status. One of: empty|loading|error|success