OBJ export library for Processing
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
library
reference
src/nervoussystem/obj
.gitignore
library.properties
readme.md

readme.md

OBJExport latest v0.2.6 04/21/2013

Description

This is a simple library to export mesh from processing as OBJ and X3D files. It is used the same way the PDF library is used.

It works with beginRecord(), beginRaw(), and createGraphics(). The exporter as well as OBJ files work with arbitrarily sided polygon, not just triangles. This allows for the versatility to export quad or hex based meshes not just triangles. If you require triangles, you can use beginRaw() to get the tesselated output of Processing rather than the original polygons.

The library also supports color mesh export creating a .png texture and a .mtl material file to go along with the obj. Use setColor(true) on the OBJExport or X3DExport object before beginDraw() to turn on color export.

The library does not support texture() or normal() in the export or lines. If you're interested in that functionality, let me know or contribute!

Tested on Windows 7, Processing 2.0b8

Installation

To install simply download the zip file, and extract the contents to your Processing libraries folder or you can use Add Library in Processing itself.