Simple loader and saver for Wavefront .obj 3D mesh files.
Loading directly into a vertex buffer can be done through loadOBJasVertexBuffer
.
val vertexBuffer = loadOBJasVertexBuffer("data/someObject.obj")
The loaded vertex buffer can be drawn like this:
drawer.vertexBuffer(vertexBuffer, DrawPrimitive.TRIANGLES)
To save a vertex buffer as an .obj file:
vertexBuffer.saveOBJ("my/path/exported.obj")