Processing

Processing is "a programming language and environment built for the electronic arts and visual design communities. It was created to teach fundamentals of computer programming within a visual context and to serve as an electronic sketchbook."

Given an introduction like that, I expected it to have a much different feel than it does. I expected a domain-specific direct-manipulation model, and I got a thin procedural wrapper. For example, consider this RGB Cube demo. I'd expect the source code to look something like this:

#pragma 3D_WORLD
Square s;   (implicitly centered in the viewport)
s.all_faces.shading_method = 
        Shading_Method_Interpolate_Vertices;
s.vertices.front_upper_left.color = black;
s.vertices.front_upper_right.color = red;
s.vertices.front_lower_left.color = green;
s.vertices.front_lower_right.color = yellow;
s.vertices.back_upper_left.color = blue;
s.vertices.back_upper_right.color = purple;
s.vertices.back_lower_left.color = cyan;
s.vertices.back_lower_right.color = white;

on mouse_move {
        s.rotate_around_x_axis(mouse.delta_x);
        s.rotate_around_y_axis(mouse.delta_x);
}

But the reality is much easier to implement, and much more disappointing from a user's perspective.

  • Instead of having things like mouse movement deltas readily available, you have to explicitly remember the old mouse position, and subtract it from the new position.
  • The square, instead of being an object, is defined as a series of calls to the vertex() function, preceeded by beginShape(QUADS), and terminated by endShape().
  • The color of the vertices is also completely dependent upon the order of function calls -- you call fill() to set the global color, and that gets inherited by the calls to vertex().
  • There's this completely non-intuitive idea of push() and pop(), to save all the global variables, presumably so that cumulative calls to translate() don't walk you off the screen. At a minimum, I would have expected the loop() function to have implicit calls push() and pop().

In other words, Processing seems to be nothing more than a thin layer over OpenGL, implemented inside a Java applet.

I've got to admit though, some of the applets are really cool.

Posted on January 19, 2004 07:52 PM
More languages articles

Comments

This reminded me of an idea I had a long time ago but lacked the language design skills required to actually implement -- namely a system that generates an interactive graphical rendition of an Origami model from a declarative specification.

All you would have to do is specify an Origami model (or paper airplane or whatever) as a series of paper folds. The system should be capable of deriving the geometry of the resultant model on its own. You could then animate the sequence of folding steps and interact with the model in different ways.

I came across Doodle soon after, but it takes a more procedural approach than I had imagined.

-K

Posted by: Kaushik at January 20, 2004 08:06 PM

this is very opengl-like. They're either basing this on gl or more likely using opengl with a thin layer of translation. Their 2d code is very different, and makes you write your own masking. At least the sprite demo did.

Posted by: Jesse at January 21, 2004 03:46 PM

I was introduced to this several months ago, and also expected something much greater than what it was. The magazine (Wired, maybe?) talked about it like it was this revolutionary idea that makes graphical programming easy and fun. So happens that was precisely what I was looking for, game programming sucking and all.
It had a very C-like syntax, and didn't do much for you. The complexities of graphical programs were as pervasive as ever, and I was turned off within seconds.
Not to say it's bad or anything. OpenGL is one of the best designed libraries ever, in my opinion. It's the only part of game programming that I don't despise.
And, yeah, the demos are pretty cool.

Posted by: Luke Palmer at January 22, 2004 01:14 AM

I was introduced to this several months ago, and also expected something much greater than what it was. tiffany jewelry The magazine (Wired, maybe?) talked about Tiffany Necklaces it like it was this revolutionary idea that makes graphical programming easy and fun. So happens that was precisely what Ed Hardy I was looking for, game programming sucking and all.

Posted by: luke at September 30, 2009 03:31 AM

In reality it's quite hard to download free games and make sure you get no viruses and only quality games. You always get the crap no matter what you do. There still one way to go around that and it's to download only from the best publishers. Here comes GameFiesta! If you haven't heard of it, it's just the best online and downloadable games site. Completely open to gamers of all ages, this site is one of the internet's jems!

Posted by: west at November 13, 2009 10:18 AM

People all over the world know the abercrombie and fitch,but not everyone really knows how fashion the abercrombie is,hollister is the Legend maker. Everybody wears the hollister clothing would be the abercrombie mensand the abercrombie womens, if you want know you can search the Ruehl No.925 or abercrombie outlet in the www.google.com .

Posted by: fitch at November 14, 2009 02:05 AM

Uggs on sale now.UGG Classic Cardy Boot makes me different form the other

girls. The UGG Bailey Button Boot is a good choice for female.

Posted by: ugg classic cardy boots at November 17, 2009 12:56 AM

The 39.html">classic cardy uggs boots is another hot boots that worth of buying.And the classic tall ugg boots
will make your winter amusing.And now uggs on sale,if you are looking for such a boot,the ugg boots is good choice this year.

Posted by: UGG Bailey Button Boots at November 17, 2009 12:58 AM

We are the best online sales for the china wholesale . Here you can have a large of choices of kinds Ugg Boots,Converse Shoes,Timberland Boots,puma shoes,Nike Shox Shoes ,Nike Dunk SB Shoes,Nike Air Max,Links Of London,Tiffany Jewelry,Dior Handbags?,jimmy choo handbags ,Cartier Watches, 8GB Mp4 Players,Bluetooth Car DVDs. All our cheap online cheap goods are high quality and original packages, and best service. We offer our customers the best service, 7 days arrive at your door.Enjoy your easy and happy shopping with us.

Posted by: cheap goods sale. at November 20, 2009 01:38 AM

Laptop Battery Laptop Battery Laptop Batteries
Laptop Batteries discount laptop battery
discount laptop battery
notebook battery notebook battery
computer battery computer battery
replacement laptop battery replacement laptop battery
notebook batteries notebook batteries

Posted by: Laptop Battery at November 24, 2009 09:57 PM

Ugg Classic Cardy

Boots

Ugg Classic Tall

Boots

Ugg Classic Short

Boots

Posted by: topuggshoes at November 26, 2009 02:57 AM

Just wanted to say great job with the blog, today is my first visit here and I’ve enjoyed reading your posts so far
ugg bailey button
Wow, my ugg classic mini will not be coming off now! I’ve had them on for 12hrs strait and I do not want to take them off. Thanks for everything, well worth the wait.

Posted by: ugg bailey button boots at November 30, 2009 05:57 AM

Spring is near,every girl wants to be the bride in the special season.They are eager to put on beautiful Wedding Dresses or the Bridal gowns.During the day the Wedding gowns is the good choose,and the night,if you want radiant,you need the Evening gowns.
About the bridesmaid,they have to wear Bridesmaid Dresses in order to avoid grab limelight with the bride.And the Flower Girl has the Flower Girl Dresses,too.In the wedding,the Cocktail Dresses and the Evening Dresses is necessary,too!And remember,the Wedding Dress of the Bridal Dress must be the most glaring!

Posted by: weddingdressclub at December 1, 2009 02:02 AM
Post a comment









Remember info?




Prove you're human. Type "human":