We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › prosvg + 3d
Page Index Toggle Pages: 1
prosvg + 3d (Read 601 times)
prosvg + 3d
Feb 2nd, 2006, 4:23pm
 
hi all

i was just wondering if it was possible to use the prosvg lib to export svg files if a sketch is 3d as the size function only seems to take 3 arguments so i can't have for example:

size(800,600,OPENGL,"prosvg.SVGOut");

cheers
rene.
Re: prosvg + 3d
Reply #1 - Feb 2nd, 2006, 7:09pm
 
whoops, just read that it's an extension of the 2d renderer. would be great to see a 3d version in the future though as the current lib is so useful.
Re: prosvg + 3d
Reply #2 - Feb 3rd, 2006, 8:29am
 
The new PDF library added with release 101 will be able to eventually export 2D vector files from 3D Processing sketches. A DXF export library is planned for exporting files in 3D format.
Re: prosvg + 3d
Reply #3 - Feb 18th, 2006, 9:27pm
 
right, so in fact the way it will work will be that you'll use size(800, 600, OPENGL); and then when you want to grab a frame:

Code:
void draw() {
if (saving) beginRaw(PDF, "output.pdf");

// etc

if (saving) {
endRaw();
saving = false;
}
}


if the svg library is updated to extend PGraphics (it may already), then this will work with the svg library too.

this functionality is currently being worked out, and should be more available in a few releases (it's there but not working correctly yet).
Page Index Toggle Pages: 1