kalwalt / ofxPolyvox

a simple wrapper for polyvox lib, to make voxel meshes with a Minecraft style or as Marching cubes
4 stars 1 forks source link

ofxPolyvox

a simple OpenFrameworks addon that wrap the polyvox library, to make voxel meshes with a Minecraft style or as Marching cubes.

This addon is under heavy development. I'm using the git version from the master branch of polyvox

http://gitorious.org/polyvox but should be better to use the more stable release from here:

http://www.volumesoffun.com/polyvox-download/

For info about polyvox:

http://www.volumesoffun.com/polyvox-about/

http://www.volumesoffun.com/polyvox-documentation/

Anyway you can just use as it is without change polyvox version. For now you can create your polyvox mesh and draw with OpenGL calls via Vertex and Index buffer or with void polyvoxToOfMesh(const PolyVox::SurfaceMesh& surfaceMesh, ofMesh& polyvxToOfMesh) outputting the polyvox mesh to an ofMesh. Just a note: if you want to use the LowPassFilter execute() you need to download instead the develop branch.

Tested with OF 0072. Updated to polyvox 0.2 version. Done some tests in armv7l arch with PandaboardES : ofxPolyvox::draw() it's not working at the moment. Should be adapted to GLES in a near future.

roadmap: