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
- Collada Official Homepage
- Collada Wikipedia
- Feeling Software – Free Collada Plugin for Maya and 3DStudio MAX
- Blender.org – excellent opensource 3D DCC
License
Copyright © Marcus Wendt 2007
This library is licensed under the GNU LGPL
Permalink

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)
Hi Marcus, I just blogged your library over on Code & Form. Looks promising, even though I've not heard much about it before.
Thanks guys! I hope to add more features to it soon - especially looking forward to exporting whole animations from p5.