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 & HelpOpenGL and 3D Libraries › Render 3d images as 2d vector images
Page Index Toggle Pages: 1
Render 3d images as 2d vector images? (Read 393 times)
Render 3d images as 2d vector images?
Feb 6th, 2009, 3:23am
 
Hi Everyone,

Does anyone have any advice on rendering out 3D images as 2D vector art?  

I'm creating some generative 3D visuals using the openGL library, and would like to export them into a pdf or some other format that will allow me to play with them in Illustrator.  

Any thoughts or advice are much appreciated - thanks!
Re: Render 3d images as 2d vector images?
Reply #1 - Feb 6th, 2009, 5:02pm
 
Hi,

you can use

Code:

beginRaw(PDF, "someFilename.pdf");
// do your drawing stuff
endRaw();


to create a pdf with the vectors you've drawn and open it in illustrator.

Sounds good so far. But there are several drawbacks:

Since processing version 0149 some openGL features doesn't seem to work correctly (at least on Mac OS X):
- I cannot export filled shapes, only lines
- Lines are always weight 1, no matter what I set with strokeWeight
- Depth sorting doesn't seem to work

It gets a little better, if you use the P3D renderer, but still not perfect.

I also would appreciate some help with these problems or some workarounds until these bugs are gone.
Page Index Toggle Pages: 1