FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Suggestions
   Software Suggestions
(Moderator: fry)
   from digital to paper
« Previous topic | Next topic »

Pages: 1 2 
   Author  Topic: from digital to paper  (Read 4322 times)
Martin

122417302122417302martingomez_listsmg1ph WWW Email
from digital to paper
« on: Nov 24th, 2002, 12:12pm »

was wondering... would it be possible to add a feature in p5 to export screengrabs to hi-res images (let's say 300dpi)? i'm thinking in the lines of http://www.groupc.net/2002/tissue/typeB_00.html and http://www.groupc.net/2002/seed/seed_000.html ...  
 
* these can be done manually in java via the jai api (http://java.sun.com/products/java-media/jai/)?
 
 
fry


WWW
Re: from digital to paper
« Reply #1 on: Nov 25th, 2002, 4:31am »

this is planned for a future release. right now it's incomplete, unfortunately, and not ready for wider testing.  
 
(in fact, this project:  
http://acg.media.mit.edu/people/fry/haplotypes/ was done using processing and a super preliminary version of the postscript output code.. this one: http://acg.media.mit.edu/people/fry/chromosomes/14/ used the postscript code but was pre-p5, but was one of the influences on the design of p5)
 
for now, you can always set size() to something reasonably large, and use screenGrab()
 
you might also try writing postscript code directly. zach's reference is a good start: http://www.thesystemis.com/dbn/ (look under the 'postscript' heading)
 
and if you're more interested in writing ps, check out the book "postscript by example".
« Last Edit: Nov 25th, 2002, 4:33am by fry »  
REAS

WWW
Re: from digital to paper
« Reply #2 on: Nov 25th, 2002, 12:18pm »

In some cases if you are working in 2D, you can also scale the image and make a screen grab of that piece of the image and then move the image and take a screen grab of that piece of the image and then move the image...  
 
You can then piece the images back together again in a program like Photoshop. Some of my prints are created this way and others are created through writing vector files.
 
Dimitre

WWW
Re: from digital to paper
« Reply #3 on: Nov 25th, 2002, 2:26pm »

I used PHP + PDF Module to write some things generated by java. I think if you edit the proce55ing generated java you can do that too.
I concatenated all the parameters of my drawing (in my case: x, y, radius, r, g, b of each ellipse) and pass to a php file using HTML Post.  
 
Then you use the php commands to generate pdf online (http://www.php.net/manual/en/ref.pdf.php)
 
If there is someone interested in details I can explain.
« Last Edit: May 18th, 2004, 10:17pm by Dimitre »  
Dimitre

WWW
Re: from digital to paper
« Reply #4 on: Nov 29th, 2002, 6:06pm »

Here you can see it working. Not 100% yet
http://dmtr.org/experimental/pdf_java/
« Last Edit: Nov 11th, 2003, 4:50pm by Dimitre »  
adrien

WWW
Re: from digital to paper
« Reply #5 on: Dec 1st, 2002, 1:55pm »

since it seems that fry already has the tools, i'm going to second the notion of an output to .ps, .eps or .pdf feature. this would be brilliant.
 

Signature: Signatures are displayed at the bottom of each post...
adrien

WWW
Re: from digital to paper
« Reply #6 on: Dec 1st, 2002, 2:33pm »

PostScript is fun, by the way.  
 
Worth the learn.
 
Hmmm. PS, P5. hmmm. Is P5 the 31337 version of PS?
 

Signature: Signatures are displayed at the bottom of each post...
Martin

122417302122417302martingomez_listsmg1ph WWW Email
Re: from digital to paper
« Reply #7 on: Dec 1st, 2002, 5:53pm »

hello. while postscript is indeed fun to learn and to use, postscript is limited to vector. i'm looking into direct raster manipulation for high quality outputs to paper. ... then again, the definition of paper itself is changing. perhaps this is why we should not only focus on the tools but rather manipulate media directly (origami? ). makes you think a little.
 
re: ps-p5 link... hehe. i don't think p5's the 31337 version of ps hhmm... perhaps p5 = 31337 version of dbn.
 
re: dimitre's nifty lil program... you rock! real-time generation... this is really cool. with p5's output capability, we definitely can do some more stuff btw, the lil app reminds me of the rorschach inkblot test hehe. keep it up!
 
and yes, i agree that postscript is fun ... if only they had a thinner manual hehe. jk ... makes you wonder... like dbn, which tears apart the java awt canvas and graphics class... wouldn't it be nice if there was a beginner's language for doing print/postscript? just ideas... hehe. cheers!
 
heuermh


Re: from digital to paper
« Reply #8 on: Jan 6th, 2003, 11:09pm »

one could also render to SVG using the Batik toolkit.
 
> http://xml.apache.org/batik
 
Code:

DOMImplementation di = ...;
Document d = ...;
SVGGraphics2D g = new SVGGraphics2D(d);
 
myAWTComponent.paint(g);
 
Writer out = ...;
g.stream(out);

 
   michael
 
Martin

122417302122417302martingomez_listsmg1ph WWW Email
Re: from digital to paper
« Reply #9 on: Jan 8th, 2003, 3:41am »

speaking of svg, sun has its own example (url below) ... hhmm... will the future release of p5 use this?
 
http://developer.java.sun.com/developer/technicalArticles/GUI/svg/
« Last Edit: Jan 8th, 2003, 3:45am by Martin »  
fry


WWW
Re: from digital to paper
« Reply #10 on: Jan 8th, 2003, 5:32am »

nah, i'm not particularly into svg.. it's too little, too late.. that doesn't preclude anyone else from doing it, but i don't think it's all that interesting.
 
top priority for alternate output is probably pdf, followed by (static?) flash/swf. opengl is in there too, so that you can use the same sort of commands, but have a faster opengl-based canvas upon which to draw.
 
we've got opengl and illustrator output in pre-alpha stages in the codebase, but nothing worth releasing just yet.
 
dnm

Email
Re: from digital to paper
« Reply #11 on: Jan 12th, 2003, 7:14am »

[snip]
 
on Dec 1st, 2002, 5:53pm, Martin wrote:
and yes, i agree that postscript is fun ... if only they had a thinner manual hehe. jk ... makes you wonder... like dbn, which tears apart the java awt canvas and graphics class... wouldn't it be nice if there was a beginner's language for doing print/postscript just ideas... hehe. cheers!

There's Functional PostScript, which is PostScript wrapped in Scheme. Arguable as to whether this is easier for beginners, but it's interesting to mess around with.
 
http://www.scsh.net/resources/fps.html
 
fry


WWW
Re: from digital to paper
« Reply #12 on: Jan 13th, 2003, 5:13pm »

i've posted more complete notes about postscript output here: http://acg.media.mit.edu/people/fry/explain/postscript/ not a fixed document but more of a stream of consciousness dump of a bunch of things..
 
Martin

122417302122417302martingomez_listsmg1ph WWW Email
Re: from digital to paper
« Reply #13 on: Jan 16th, 2003, 6:20pm »

this is a very good start. thanks fry!
 
tonylemesmer

WWW
Re: from digital to paper
« Reply #14 on: Aug 31st, 2003, 7:43pm »

the correct URL mentioned in Fry's postscript notes for the cookbook PDF is:
 
http://partners.adobe.com/asn/tech/ps/download/samplecode/ps_psbooks/ind ex.jsp
 
Pages: 1 2 

« Previous topic | Next topic »