Amazing what happens when you modify a Sphere..

eyecandyspheres

Taking the 3d particle primatives a bit further (and adding color) I've found that some very nice and rather interesting models can be made when you simply change a sphere a little bit.

Normally I'd do these in order, but in this case I'd recommend you checkout M4 first to get a taste (it's certainly my fav).

Before the list, a very brief description; here we have the code to generate a sphere:


for( i in 0...PARTICLES ) {
a = (PARTICLES/360)*i;
r = (i/PARTICLES) * Math.PI;
x = Math.cos(a) * Math.cos(r);
y = Math.cos(a) * Math.sin(r);
z = Math.sin(a);
}

now all we are going to be doing is adding in some steps, or changing the odd cos/sin with cos/sin/tan - nothing complex.

Now.. M7 is a rather interesting one.. because it has two very interesting variations (imho) primarily the eye which produces a flat, yet 3d shaded circle..?

In addition there are a few more which are created by simply stepping colors or values:

again, thanks to haXe for allowing this - remember it's all just particles rendered in realtime.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://webr3.org/blog/haxe/amazing-what-happens-when-you-modify-a-sphere/ .
© Your Name Here 2010.

Leave a Reply

Additional comments powered by BackType

  • webr3 avatar