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_
   Topics & Contributions
   Responsive Form, Games
(Moderator: REAS)
   ribbon study
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: ribbon study  (Read 834 times)
flight404

WWW Email
ribbon study
« on: Jun 30th, 2003, 4:04am »

Finally got my teeth into the matrix stack.
 
www.flight404.com/p5/ribbon1
 
DISCLAIMER-------
For faster PCs and the fastest Macs.  
 
This study began as my first foray into the world of translate, rotate, push, and pop.  Originally, it was a simple model for the solar system but after a shoving a few variables around and multiplying the number of planets by a few hundred, ended up with this 3D ribbon based on sin and cos.
 
I left the number of 'planets' at 5000 because the effect was much nicer.  I will post one with only 1000 for slower computers in a few moments.
 
Click and drag to morph ribbon.  Mouse movement rotates entire structure.  Maybe one day I will attempt a quaternion rotation but for now, the rotate is very counter-intuitive.
 
UPDATE------------------
 
Faster version with only 1000 objects posted at...
 
www.flight404.com/p5/ribbon1fast
 
« Last Edit: Jun 30th, 2003, 4:09am by flight404 »  
Elrick

4892360348923603
Re: ribbon study
« Reply #1 on: Jun 30th, 2003, 11:20pm »

That's incredibly beautiful!  Good work.
 
benelek

35160983516098 WWW Email
Re: ribbon study
« Reply #2 on: Jul 1st, 2003, 7:29am »

excelent, coded simply too!
 
btw, i remember Fry telling me it's faster to calculate the position of each object than to transform the matrix so many times (with rotate() when move() is called for each planet). so you should be able to speed it up by using trig to convert the polar coordinates to cartusian.
 
Pages: 1 

« Previous topic | Next topic »