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 & HelpSyntax Questions › movement and playing
Page Index Toggle Pages: 1
movement and playing (Read 409 times)
movement and playing
Nov 28th, 2007, 5:28pm
 
Hey all,

just a few questions with a few things i am having trouble with.

Basically I want to make 8 different sized (3D) cylinders and when you click on each one, they sway to the left, play a sound and then return to their original position.

Is it possible to do this?

Can you create a drop-down box so it will change the values underneath the cylinders. e.g. the first set is 1,2,3,4,5 etc then you change the drop down box and chose ,5,6,7,8,9. The sound clips change also,.


I know it may be a lot to ask, but i would appreciate the help.

Thanks alot.
Adam
Re: movement and playing
Reply #1 - Nov 28th, 2007, 8:21pm
 
Quote:
Is it possible to do this?

Yes! Using P3D for display, and Ess, Minim or Sonia for sound playback, you can achieve this :-)

How to draw cylinders, see Processing Hacks :
http://www.processinghacks.com/hacks/cylinder

For sound playback, use Ess or another library :
http://www.tree-axis.com/Ess/

Your drop-down box can be a simple rect handling mouse events.

Hope it helps.
Re: movement and playing
Reply #2 - Nov 28th, 2007, 8:50pm
 
Thats great, thanks very much!
Page Index Toggle Pages: 1