Dark Bit Factory & Gravity

GENERAL => Challenges & Competitions => Topic started by: taj on November 22, 2006

Title: MATHCOMP: cubecubed
Post by: taj 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.

Title: Re: MATHCOMP: cubecubed
Post by: benny! on November 22, 2006
Uhh ... the background perlin noise looks outstanding  :||
Title: Re: MATHCOMP: cubecubed
Post by: rdc 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.
Title: Re: MATHCOMP: cubecubed
Post by: taj on November 22, 2006
Uhh ... the background perlin noise looks outstanding  :||

Just for you benny, I'll add an exe with just the clouds :-)
Title: Re: MATHCOMP: cubecubed
Post by: Shockwave on November 23, 2006
What a beauty!!! :)
Title: Re: MATHCOMP: cubecubed
Post by: benny! 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 !!!
Title: Re: MATHCOMP: cubecubed
Post by: Rbz on November 24, 2006
Yeah, I like that perlin noise background too  :)
Title: Re: MATHCOMP: cubecubed
Post by: taj 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..
Title: Re: MATHCOMP: cubecubed
Post by: Ghost^BHT on November 25, 2006
I love fractals - this rocks hard :)
Title: Re: MATHCOMP: cubecubed
Post by: ferris 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.
Title: Re: MATHCOMP: cubecubed
Post by: Tetra 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 :)
Title: Re: MATHCOMP: cubecubed
Post by: taj 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 :-)
Title: Re: MATHCOMP: cubecubed
Post by: Rbz 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!
Title: Re: MATHCOMP: cubecubed
Post by: ferris on November 26, 2006
@Tetra: Sierpenski? ;)

Still very nice Taj.
Title: Re: MATHCOMP: cubecubed
Post by: MrP 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.
Title: Re: MATHCOMP: cubecubed
Post by: lilw4t3rdr0p on December 03, 2006
I like the background too. The center looks like some sort of terrain map for a war game or something. :)
Title: Re: MATHCOMP: cubecubed
Post by: combatking0 on December 05, 2006
It's impressive on a still frame, and even more so in motion.

I'm with this guy  :buddies: