Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.3 KB

README.md

File metadata and controls

26 lines (19 loc) · 1.3 KB

Voxelizer

This is the voxelizer code in my slide: Incarnation - Turning Real World Objects Into Perfume-World .

Voxelizer export Perfume-World JSON format from *.OBJ and *.MTL.

Voxelizer

Usage


  1. Make sure your *.obj and *.mtl files have the same name. Put it into the same directory as index.html.
  2. Set the modelName variable in index.html
  3. Change the step variable. Bigger step means less voxels.
  4. Open index.html in Chrome. You need to run a HTTP server to serve the file since Chrome doesn't allow AJAX throught local file URL. The easiest way is run python -m SimpleHTTPServer under the directory and connect to http://localhost:8000 in Chrome.
  5. After the browser rendered the voxels, click the Save link on the page.

Credits


License


Voxelizer is available under the MIT license. See the LICENSE file for more info.