fromObjFile

fun fromObjFile(objFileNameWithoutExtension: String): ArrayList<ArModel>

Loads a 3D model from an OBJ file and returns a list of ArModel objects.

This function reads an OBJ file and its associated MTL file (if available) to create 3D models with proper geometry and materials.

Return

An ArrayList of ArModel objects representing the 3D model.

Parameters

objFileNameWithoutExtension

The name of the OBJ file (without the ".obj" extension) to load. The file should be places in the 'assets' folder.