Zinggi/elm-obj-loader

Load wavefront .obj files in your WebGL scene.


Keywords
elm, wavefront, webgl
License
MIT
Install
elm-package install Zinggi/elm-obj-loader 1.0.2

Documentation

elm-obj-loader

This is a small library for importing wavefront .obj files into your WebGL application.

Demo/Examples

Src

Limitations

Only a small subset of the .obj file specification is supported.

The easiest is to export/convert your model from Blender or another 3D content creation tool as an .obj file.

The default export options from blender work fine. Make sure you keep 'Write Normals' selected.

Completely supported face types are those with vertex position, normals and optionally vertex texture coordinates. (v, vn, vt)

Smooth groups are ignored (s n).
Your model needs vertex normals (vn).

Only tris and quads are supported. (Tris might load slightly faster)
No free-form curves/surfaces.
No material library (mtllib) support.
No negative indexing.