Author Topic: MATHCOMP: cubecubed  (Read 8838 times)

0 Members and 2 Guests are viewing this topic.

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
MATHCOMP: cubecubed
« on: November 22, 2006 »
Here is a fractal image formed from repeatedly drawing ...well something similar to a cube but not quite...in 3d. The background is done using perlin noise. Warning: THE EXE RUNS DAMN SLOW but its plain simple OGL and should run everywhere (except maybe on intel chipsets, which seem to have problems with my OGL code :-(). So if I were you I'd stick with the image.

Its based on previous work, I may as well own up here and now, but I've tnued it and played with it to get this shape and image.

« Last Edit: November 22, 2006 by taj »
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: MATHCOMP: cubecubed
« Reply #1 on: November 22, 2006 »
Uhh ... the background perlin noise looks outstanding  :||
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1495
  • Karma: 140
  • Yes, it is me.
    • View Profile
    • Clark Productions
Re: MATHCOMP: cubecubed
« Reply #2 on: November 22, 2006 »
That is very cool. Even though it runs slow on my machine, the picture doesn't do the program justice. Nice one.

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: MATHCOMP: cubecubed
« Reply #3 on: November 22, 2006 »
Uhh ... the background perlin noise looks outstanding  :||

Just for you benny, I'll add an exe with just the clouds :-)
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: MATHCOMP: cubecubed
« Reply #4 on: November 23, 2006 »
What a beauty!!! :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: MATHCOMP: cubecubed
« Reply #5 on: November 23, 2006 »
Uhh ... the background perlin noise looks outstanding  :||

Just for you benny, I'll add an exe with just the clouds :-)

You rock, dude ... that's pretty sweet ... I luv it ... karma up !!!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: MATHCOMP: cubecubed
« Reply #6 on: November 24, 2006 »
Yeah, I like that perlin noise background too  :)
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: MATHCOMP: cubecubed
« Reply #7 on: November 25, 2006 »
Yeah, I like that perlin noise background too  :)

OK I get the picture :-) remove the blue thing and its good :-). Seriously I'll post the code for the perlin some time soon. Its not what you would think..
Challenge Trophies Won:

Offline Ghost^BHT

  • Clueless and Happy
  • ^GVY
  • Pentium
  • ******
  • Posts: 931
  • Karma: 49
  • BYTE ME!
    • View Profile
Re: MATHCOMP: cubecubed
« Reply #8 on: November 25, 2006 »
I love fractals - this rocks hard :)

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: MATHCOMP: cubecubed
« Reply #9 on: November 25, 2006 »
Love the pic!

My guess is that the background is just 3 different fractalplasmas on different color channels? Correct me if I'm wrong.
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline Tetra

  • DBF Aficionado
  • ******
  • Posts: 2532
  • Karma: 83
  • Pirate Monkey!
    • View Profile
Re: MATHCOMP: cubecubed
« Reply #10 on: November 25, 2006 »
I've always liked this triangle subdivision effect, but I dont remember what its called :D
Nice 1 for it being in 3D too :)
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: MATHCOMP: cubecubed
« Reply #11 on: November 25, 2006 »
Love the pic!

My guess is that the background is just 3 different fractalplasmas on different color channels? Correct me if I'm wrong.

Nearly right. Its the _same_ fractal plasma at 3 speeds of rotation. Each plasma is on two colour channels.
The interesting thing is how the plasma is generated. Here is the main code:

Code: [Select]
GLubyte rarray[256*256];

static void captureNoiseTexture (const uint per, uint noct, GLubyte **pix){   
uint s=512;
uint i;

  glEnable (GL_BLEND);
  glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
  glColor4ub (255,255,255,per);                        // this puts persistance in alpha...
  do {
     i = 256*256;                                             // s*s is more bytes
     while (i) {rarray[--i]=rand();}                        // random bytes in an array
     s >>= 1;                                                  // halve resolution of texture each pass
     newTexture (1, 1, s, GL_LUMINANCE,rarray);
     drawQuad();                                              // or could be an ogl disk or whatever..draws a quad with the random texture and blends with all others             
  } while (--noct);                                            // repeat for each octave of white noise

  captureArea (GL_RED, 256, pix);                    // routine to capture screen 256x256 and make OGL texture...

  glDisable (GL_BLEND);
}


Its pretty tight code to implement 2d perlin noise.
No grid subdivision, no sin plasma, just straight OGL coding... I'm quite proud of this :-)
« Last Edit: November 25, 2006 by taj »
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: MATHCOMP: cubecubed
« Reply #12 on: November 25, 2006 »
Yeah, I like that perlin noise background too  :)

OK I get the picture :-) remove the blue thing and its good :-). Seriously I'll post the code for the perlin some time soon. Its not what you would think..

Hehe

Btw, nice piece of code, very smart indeed!
Challenge Trophies Won:

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: MATHCOMP: cubecubed
« Reply #13 on: November 26, 2006 »
@Tetra: Sierpenski? ;)

Still very nice Taj.
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline MrP

  • Atari ST
  • ***
  • Posts: 176
  • Karma: 18
    • View Profile
Re: MATHCOMP: cubecubed
« Reply #14 on: November 30, 2006 »
Very Nice.... and I agree with everyone else the backdrop is very nice, and compliments the blue eye masher very well.... Well Done.

lilw4t3rdr0p

  • Guest
Re: MATHCOMP: cubecubed
« Reply #15 on: December 03, 2006 »
I like the background too. The center looks like some sort of terrain map for a war game or something. :)

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: MATHCOMP: cubecubed
« Reply #16 on: December 05, 2006 »
It's impressive on a still frame, and even more so in motion.

I'm with this guy  :buddies:
You are our 9001st visitor.
Challenge Trophies Won: