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.
IndexDiscussionGeneral Discussion,  Status › Updating the Examples
Page Index Toggle Pages: 1
Updating the Examples (Read 1652 times)
Updating the Examples
May 26th, 2007, 6:16pm
 
I'm currently working on updating the examples in the Learning section of the site (these are also included with the download.) Many of the examples date back to 2002, when we were getting started. The project has grown significantly since that time, so I'm adding more examples for the libraries and will focus more on 3D and OpenGL. I'm planning to split the examples into four categories so that each is a manageable list: Basics, Topics, 3D & OpenGL, Libraries.

Any ideas? Are there any projects online that you think would make a good example? The criteria for examples are to be simple enough to be good for learning and complex enough to be exciting. We particularly need good 3D examples.

Casey
Re: Updating the Examples
Reply #1 - May 31st, 2007, 6:14am
 
I'm glad to here that new examples are on the way. I found the old ones incredibly helpful as I've learned processing and as I continue to code.

There have been some projects on processingblogs.org that I think would benefit from a simple example. Particularly in the realm of OPENGL, examples of using PGraphics objects to set blending modes would be great. Also, 3-d examples of using beginShape(TRIANGLE_STRIP) and beginShape(QUAD_STRIP) to render 3-d "surfaces" would be good.

A color-palette class might be another nice demo, perhaps in two steps to generate a random complementary pair or grab colors from a photo.

I would be happy to help write an example or two if you're looking for that.
Re: Updating the Examples
Reply #2 - May 31st, 2007, 6:45pm
 
Conspicuously absent are uv vertices and use with texture().  Feel free to use as is or modify in any way desired, credit not required, from: http://www.davebollinger.com/scratch/TexturedCube/
Re: Updating the Examples
Reply #3 - Jun 2nd, 2007, 7:04am
 
Thanks for the feedback. I've added the textured cube to the upcoming group. Regarding the OpenGL features, this is an area for Processing Hacks because they are not yet a part of the official language. We think this is an exciting new area of development. We hope to get the Hacks integrated into this site in the near future. We welcome a few new color examples. I'll be adding a few new 3D examples, but I hope to get/make more.
Re: Updating the Examples
Reply #4 - Jun 15th, 2007, 5:35am
 
There are many new examples online!

Check it out:
http://www.processing.org/learning/

It's still a work-in-progress, but I think it's a good structure to build on. I'm hoping to add many more OpenGL and 3D examples and to include more from different libraries.

Also, please check out the book promotions and downloads:
http://www.processing.org/learning/books/

As always, when you find mistakes, please let me know about it.

Casey
Re: Updating the Examples
Reply #5 - Jun 18th, 2007, 8:07pm
 
Here are some examples. If you think they are useful, feel free to use these.

A set of running square I wrote to test how many sprites could be displayed:
http://o.marce.free.fr/Processing/RunningSquare

The same, correctly written, i.e. witho objects:
http://o.marce.free.fr/Processing/RunningSquareObject

Maybe a bit too complicated, although it gives an idea of how to make complex textured shapes:
http://o.marce.free.fr/Processing/BezierShape/

Regards
Re: Updating the Examples
Reply #6 - Jun 20th, 2007, 4:50am
 
Congrats for the book Casey. Also the new learning section looks pretty good. I'd like to donate some examples if you find them useful. They are done in Processing version 56, but can be easily upgraded.

Simple 3d camera motion + recording and playback
http://plw.media.mit.edu/people/arikan/2004/datapov/virtualcamera/

3d transparent shapes controlled with mouse
http://plw.media.mit.edu/people/arikan/2003/dynamic_compositions/R/R04/applet/

There are also 20 something simple pieces here
http://plw.media.mit.edu/people/arikan/2003/dynamic_compositions/
Page Index Toggle Pages: 1