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 › jpeg export from 3d sketch
Page Index Toggle Pages: 1
jpeg export from 3d sketch (Read 1014 times)
jpeg export from 3d sketch
Jan 23rd, 2010, 1:37pm
 
hey there,

is there a library for exporting hi resolution Jpegs from the sketch window?

Re: jpeg export from 3d sketch
Reply #1 - Jan 23rd, 2010, 1:52pm
 
TileSaver is what you want:

http://processing.org/discourse/yabb2/num_1219249035.html

but searching the archives suggests that it might not be working for recent versions. can't say for certain.

http://processing.org/discourse/yabb2/?num=1248245155
Re: jpeg export from 3d sketch
Reply #2 - Jan 23rd, 2010, 2:18pm
 
This will save the frame using the sketch resolution.
Code:
String savePath = selectOutput();  // Opens file chooser
if (savePath != null) {
 delay(1000);
 saveFrame(savePath);
}
Re: jpeg export from 3d sketch
Reply #3 - Jan 23rd, 2010, 2:30pm
 
yes, saveFrame is the much easier option if the screen resolution is good enough for what you want. and if you save as png rather than jpeg you'll get perfect copies without any jpeg compression (at the expensive of file size)

tilesaver is for images much larger than the screen, if that's what you want.
Page Index Toggle Pages: 1