Documentation


.obj to Array Converter


The goal of this converter is to convert a .obj file created with MagicaVoxel or other 3D software into a JavaScript matrix. A .obj file is a file that consists of coordinates of the faces, edges and vertices of a 3D object. This file also contains extra data like the hexadecimal color values that is associated with each block. This converter analyzes the file, extracting the coordinates of each block and then converting this 3D object into a 3D JavaScript Array.

This JavaScript array is then rendered using THREE.js to provide the output shown below.