Collada Export Plugin for Processing

marcus • August 8th, 2007

libCollada allows you to easily export 3D geometry and material data in the COLLADA 1.4.1 format from your processing applications. Although processing’s drawing methods and COLLADA’s scenegraph based, more complex 3D description format, do not match directly – the library attempts to do a reasonable conversion, requiring no extra API to learn.

Releases

version 0.2

now creates materials & effects generated from standard p5 drawing commands
» collada-0.2.zip

version 0.1

first public release with examples and packaged for p5
» collada-0.1.zip

version 0.01 (08/06/07)

a first rather rough version that can export basic geometry data.

Source

You can checkout the latest revision with subversion from the repository with:

svn export http://svn.infostuka.org/rep/libCollada/trunk/

Useage

Use the plugin in the same way as you would with the PDF or PNG exporter.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import processing.opengl.*;
import infostuka.collada.p5.*;

void setup() {
  size(400, 400, OPENGL);
}


void keyPressed() {
  if (key == ' ') {
    record = true;
  }
}


void draw ()
{
    if (record) {
        beginRecord(P5ColladaExport.DAE, "output.dae");
    }

    // ... your drawing operations here ...

    if (record) {
        endRecord();
        record = false;
    }
}

Examples


Related

License

CC - Some rights reserved

Copyright © Marcus Wendt 2007
This library is licensed under the GNU LGPL

 

Permalink

 

Tags

+3d +geometry +java +library +processing.org

3 Responses to Collada Export Plugin for Processing

  1. Matt
    This is awesome. I've been working with Saito on the obj loader but I've been wanting to get collada importing and exporting working for a while now. I use collada at work so it's becoming more of a need for me to get it integrated in processing. Great work looking forward to testing it. MattD(polymonkey)
  2. Marius Watz
    Hi Marcus, I just blogged your library over on Code & Form. Looks promising, even though I've not heard much about it before.
  3. Marcus
    Thanks guys! I hope to add more features to it soon - especially looking forward to exporting whole animations from p5.
3d 4-space abstract aesthetic system aesthetics algorithm alien ambient ambisonics animation architecture art artificial audio audio research black&white book caskets classic clicks & cuts code color computer-vision conceptual art consoles cpp culture ddr design devices digtial fabrication documenta documentation drawing dynamics electricity electromagnetism electronics environment event exhibition experimental exploration fashion festival film flocking folk food fractal furniture gamedev generative genetic geometry glitch graphic hacks haptics hardware history hyperspace ideas illustration images inspiration installation instrument intelligence interactive interieur japan java knowledge management landscape library life light liquid live london math micro minimal modernism monochrome motion motion graphics multiples music naming nature nervous ink networked networking opensource osx painting paper particles performance personal photography physics playful politics press print processing processing.org programming quotes recipes research retro romance ruby scripts sculpture SENDUNG.net shopping snippets social software sound space space exploration craft space exploration craft orbiter supercollider swiss systems technology theory theremin toys transformed travel tricks typography universe video visual vj water web2.0 xcode