Dark Bit Factory & Gravity

GENERAL => Challenges & Competitions => Topic started by: Knurz on May 04, 2012

Title: [CUBES] HTTSC
Post by: Knurz on May 04, 2012
Hi!

I considered long if this is worth an entry here. But I'm in a learning process and want to hear your opinions to this :).
So this is my first real OpenGL Stuff done. I played a little around with blending and OpenGL so it's more a "What I have learned while writing this" :).

Please tell me what you like and what you didn't like, I want to learn from my design/program mistakes I've done with this one :).

Title: Re: [CUBES] HTTSC
Post by: jace_stknights on May 04, 2012
 :clap: Great one!!!  :clap:

Really nice and colorfull!!! Love it! 

For an first opengl, pfewww!!!

EDIT: got a problem with the window at startup! It is displayed first at 0,0 position and then centered. But there is still it drawing at screen on the background (at previous 0,0 position).
Title: Re: [CUBES] HTTSC
Post by: Kirl on May 04, 2012
That was really awesome, I enjoyed it a lot!

Very cool prod!  :clap:
Title: Re: [CUBES] HTTSC
Post by: Raizor on May 04, 2012
Really cool entry Knurz! I love the cubes splitting up reforming and the subtle sine wobble. Great stuff :)

K++

EDIT: btw, was does HTTSC stand for?
Title: Re: [CUBES] HTTSC
Post by: padman on May 04, 2012
Very cool stuff! Especially for a firsty. Well done!  :clap:
Title: Re: [CUBES] HTTSC
Post by: Knurz on May 04, 2012
@jace: Thanks, I figured out that MoveWindow after GL has initialized is not smart ... Will change my init.-code :)

As uncreative as ever HTTSC stands for "Homage to the spinning cube" :).

Thanks for the positive replies. :)
Title: Re: [CUBES] HTTSC
Post by: Clyde on May 04, 2012
I'm unable to run and test this on windows7 64-Bit. Apparently, I don't have the correct permissions.
Title: Re: [CUBES] HTTSC
Post by: benny! on May 05, 2012
Woah ... if this was your first try in OpenGL ... I wonder how your next intro will look like.

Great entry - love the cracktro colored cubes on the ground. Tune fits perfectly and everything runs really smooth.

 :clap:
Title: Re: [CUBES] HTTSC
Post by: Knurz on May 05, 2012
Mhh I programmed this on W7/64, should not need any additional permissions  :o.

Except for that "VROOM" Remake, this is my first Intro :).
Title: Re: [CUBES] HTTSC
Post by: Blacksheep8Bit on May 05, 2012
Are those colors (from the rainbow cubes) real-time generated? If not take this with you:

Code: [Select]
struct RGBA
{
float r;
float g;
float b;
gloat a;
}

float _arcoiris(float ti)
{
float tiDelta = floor(ti/360);
ti = ti - float(tiDelta*360);

if (ti<=240)
{
if (ti<120) // 0 - 119
{
return ti/119;
}
else // 120 - 239
{
return 1 - (ti-120)/119;
}
} else { // 240 - 360
return 0.0;
};
};
RGBA ArcoIris(float ti)
{

RGBA rgba;
rgba.r = _arcoiris(ti + 0  );
rgba.g = _arcoiris(ti + 120);
rgba.b = _arcoiris(ti + 240);
rgba.a = 1.0f;

return rgba;
}


Example:

t++;
RGBA color = ArcoIris(t)
glColor3f(color.r,color.g,color.b);

I Am giving you this piece of code for one reason: I Need motivation to work in my demo, and giving resources to everybody only makes my work harder, so i can get out of the bed and work more :3
Title: Re: [CUBES] HTTSC
Post by: Pixel_Outlaw on May 06, 2012
Very nice entry!

I love the wobble on the main cube. :)
Title: Re: [CUBES] HTTSC
Post by: Jim on May 06, 2012
Nice! No W7/64 problems for me.
Jim
Title: Re: [CUBES] HTTSC
Post by: Knurz on May 06, 2012
@BlackSheep: Nope, the colors are precalc (it'S the same routine as used in vroom  ) => lazy Jones mode :).

Thanks for your positive replies.

Now that my logical Volume on my server works again (Thought I have lost all my work from prev. 5 years -.-), I'll post the source after the comp. has finished :).

Title: Re: [CUBES] HTTSC
Post by: Clyde on May 06, 2012
I had to temporarily disable avg, it said about the exe having the oneheur virus.

It's a really neat intro!! :)
Title: Re: [CUBES] HTTSC
Post by: Optimus on May 07, 2012
Great for first OpenGL try.
I like when the cube waves.
Title: Re: [CUBES] HTTSC
Post by: combatking0 on May 09, 2012
Cool backgrounds, and I like how the colours pulse through the cubes at the bottom.

The synchronised 4*4*4 cube is also good.
Title: Re: [CUBES] HTTSC
Post by: Shockwave on May 16, 2012
I wish my first try with Opengl had been as good as this.

I like it Knurz :) the cube exploding into lots of cubes looks good.

Good luck in the voting.
Title: Re: [CUBES] HTTSC
Post by: Hotshot on May 24, 2012
Good OpenGL Cube there  :clap:
Title: Re: [CUBES] HTTSC
Post by: Kirl on May 24, 2012
Excellent happy chippy tune too, I just have to open it from time to time. :)
Title: Re: [CUBES] HTTSC
Post by: Knurz on May 27, 2012
Source Code for httsc.

(It's a mess and there are many functions in it which I never use...  :updance: )



Title: Re: [CUBES] HTTSC
Post by: jace_stknights on June 14, 2012
Yeah K+++++ for the src :updance:
Title: Re: [CUBES] HTTSC
Post by: Raizor on June 14, 2012
Yeah K+++++ for the src :updance:

Oops, that reminds me. Will post mine soon, promise!
Title: Re: [CUBES] HTTSC
Post by: egons on June 14, 2012
ouch. my idea O0
Title: Re: [CUBES] HTTSC
Post by: jace_stknights on June 14, 2012
Oops, that reminds me. Will post mine soon, promise!
waiting for it!!!
Title: Re: [CUBES] HTTSC
Post by: Knurz on June 14, 2012
Yeah K+++++ for the src :updance:

Oops, that reminds me. Will post mine soon, promise!

Waiting for it too :). (because raymarching hurts my brain...  :inspired: )
Title: Re: [CUBES] HTTSC
Post by: Shockwave on June 16, 2012
Thanks for posting the source Knurz :)

K+