lovr.data.newModelData

Edit

Loads a 3D model from a file. The supported 3D file formats are OBJ and glTF.

modelData = lovr.data.newModelData(file)

Arguments

NameTypeDescription
filestring | Blob A filename or Blob containing the model data to import.

Returns

NameTypeDescription
modelDataModelData The new ModelData.

See also