A library for reading wavefront files (.obj) and transforming them to Java Arrays of float.
These arrays can then be used by OpenGL (for VertexBufferObjects).
The arrays are collected inside a data structure called Wavefront.
- Java 16
- Maven 3.8.1 (only if you want to build/extend it)
Import this library to your project
<!!TODO maven central repository!!>
call the following function:
WavefrontReader.fromResource(filename)
filenameis the path and filename to the.objfile in your resource folder.
This returns a Wavefront data structure with filled float arrays for:
- vertices
- texture coordinates (only if information in .obj file is available)
- normals (only if information in .obj file is available)
Release Version 1.0.0
Read an .obj file and create a Wavefront data structure supported is:
- vertices
- uv (texture coordinates)
- normals (for light)
