[x]

deviantART

 

Apo2.05 beta2Z+C+

Sun Jan 28, 2007, 5:55 PM
C+ for cyberxaos! Mwahahaha! NorwegianAngel requested that I make the few Apo variations I've come up with available. So far, they are:

• circles
• flower
• parabola
• conic

I'm not releasing the foo variation yet, because it's just plain weird and could use some more work. I've added the above variations onto Gygrazok's Z+ version, so you can mash up all the variations as you see fit. Be forewarned that I was unable to compile the inline assembly code, so this version will run a little slower than Apo2.05b2 until I figure out how to compile the inline asm blocks. Also, I am no mathematician -- I am a hack, and proabably don't understand what the hell I'm doing. So, there may be redundancy with these variations. Please understand, this is just me, goofing around, having fun. I'm only distributing this garbage because there was some interest. I've barely used or tested these variations so far, myself. So, with that disclaimer, if you want, you can download the cyberxaos Apo version, full of C+ goodness, right here:

Apo2.05b2Z+C+ executable
Apo2.05b2Z+C+ source

Use at your own risk! FYI, I will not be providing any technical support. I'll be out of town for the next couple of weeks, so you're on your own kids! Enjoy =)

p.s. I'd love to see what, if anything, you create with this. So, if you create something cool, please drop me a comment or a note

p.p.s. I zipped the entire contents of my Borland project directory, so there might be a bit of garbage in the source tree ;)

Devious Comments

love 0 0 joy 4 4 wow 1 1 mad 0 0 sad 0 0 fear 0 0 neutral 0 0

Are those your comments in the code marked with a "--Z--"? If so, they're hilarious... I laughed out loud several times. You've got a good sense of humor :D
:excited:

I'm gonna get to playing with it right away!

--
Avatar fueled by the lovely =psivamp
Subscription fueled by the lovely *TearsAndThunder

[link]

Thank you for helping me smile. :)
on flowers, the flowers_petals parameter has a problem when it is a multiple of 2. if you set it to 2, 4, 6... it will have 4, 8, 12, petals.

I think the x and y coordinates are switched in Circle. Adding a linear-like variation to it stretches diagonal. If you add fisheye, which is the same as eyefish with the coordinates mixed :no:, then there is no funny stretching.

--
*Apophysis is back
Most of your variations do something like this:
      theta = arctan2(y, x);
      tx = cos(theta);
      ty = sin(theta);
which is the same as
      h = hypot(x, y);
      tx = x / h;
      ty = y / h;

hypot(x,y) calculates the norm, or length of the hypotenuse, on a right triangle with sides x and y.
      hypot(x,y) = sqrt(x*x + y*y)

If you know any physics or vector math, then you might recognize this as vector normalization. Your code does the same thing in an indirect way. theta is one of the angles of a triangle with sides of length x and y. cos(theta) and sin(theta) are the lengths of a similar triangle with a hypotenuse of length 1.

I'm pretty sure this hypot code is faster than calling arctan2, sin and cos. :thumbsup:
Nope, I think they are Zueuk's comments ^^"

--
*Apophysis
Oh, so he's the smart ass, ok :D
Thanks for providing a good base for me to add some variations too -- some of the ones I just added might work well with some of yours...
Thanks for the feedback Joel -- what you say makes sense.
Did I mention? I'm a hack =) Just looking to make some cool, different looking, images... It's been a while since I cracked a physics or calculus textbook :D Yeah, none of this is optimized, or in any way ready for prime time -- my hope is that if I release this garbage AS IS, you other deviants might have fun modifying and/or playing with it.
Hope you have fun with it =)

Journal History

Site Map