Author Topic: [CUBES] HTTSC  (Read 9609 times)

0 Members and 1 Guest are viewing this topic.

Offline Knurz

  • Atari ST
  • ***
  • Posts: 108
  • Karma: 25
    • View Profile
[CUBES] HTTSC
« 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 :).

Remember what the dormouse said: Feed your head

Offline jace_stknights

  • Amiga 1200
  • ****
  • Posts: 399
  • Karma: 32
  • PEEK & POKE are not MOVEM!
    • View Profile
    • ST Knights WebSite
Re: [CUBES] HTTSC
« Reply #1 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).
« Last Edit: May 04, 2012 by jace_stknights »
Challenge Trophies Won:

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1215
  • Karma: 230
    • View Profile
    • Homepage
Re: [CUBES] HTTSC
« Reply #2 on: May 04, 2012 »
That was really awesome, I enjoyed it a lot!

Very cool prod!  :clap:
www.kirl.nl
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1153
  • Karma: 174
    • View Profile
Re: [CUBES] HTTSC
« Reply #3 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?
« Last Edit: May 04, 2012 by Raizor »
raizor

Challenge Trophies Won:

Offline padman

  • Senior Member
  • Pentium
  • ********
  • Posts: 990
  • Karma: 260
    • View Profile
Re: [CUBES] HTTSC
« Reply #4 on: May 04, 2012 »
Very cool stuff! Especially for a firsty. Well done!  :clap:
Challenge Trophies Won:

Offline Knurz

  • Atari ST
  • ***
  • Posts: 108
  • Karma: 25
    • View Profile
Re: [CUBES] HTTSC
« Reply #5 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. :)
Remember what the dormouse said: Feed your head

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: [CUBES] HTTSC
« Reply #6 on: May 04, 2012 »
I'm unable to run and test this on windows7 64-Bit. Apparently, I don't have the correct permissions.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: [CUBES] HTTSC
« Reply #7 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:
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Knurz

  • Atari ST
  • ***
  • Posts: 108
  • Karma: 25
    • View Profile
Re: [CUBES] HTTSC
« Reply #8 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 :).
Remember what the dormouse said: Feed your head

Offline Blacksheep8Bit

  • *Custum Title goes here*
  • C= 64
  • **
  • Posts: 91
  • Karma: 36
  • *useless thing to write goes here*
    • View Profile
Re: [CUBES] HTTSC
« Reply #9 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
« Last Edit: May 05, 2012 by BlackSheep8Bit »
Challenge Trophies Won:

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1382
  • Karma: 83
    • View Profile
Re: [CUBES] HTTSC
« Reply #10 on: May 06, 2012 »
Very nice entry!

I love the wobble on the main cube. :)
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: [CUBES] HTTSC
« Reply #11 on: May 06, 2012 »
Nice! No W7/64 problems for me.
Jim
Challenge Trophies Won:

Offline Knurz

  • Atari ST
  • ***
  • Posts: 108
  • Karma: 25
    • View Profile
Re: [CUBES] HTTSC
« Reply #12 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 :).

Remember what the dormouse said: Feed your head

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: [CUBES] HTTSC
« Reply #13 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!! :)
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Optimus

  • DBF Aficionado
  • ******
  • Posts: 2456
  • Karma: 128
    • View Profile
    • Optimouse Demo Site
Re: [CUBES] HTTSC
« Reply #14 on: May 07, 2012 »
Great for first OpenGL try.
I like when the cube waves.
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: [CUBES] HTTSC
« Reply #15 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.
You are our 9001st visitor.
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17393
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: [CUBES] HTTSC
« Reply #16 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.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: [CUBES] HTTSC
« Reply #17 on: May 24, 2012 »
Good OpenGL Cube there  :clap:

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1215
  • Karma: 230
    • View Profile
    • Homepage
Re: [CUBES] HTTSC
« Reply #18 on: May 24, 2012 »
Excellent happy chippy tune too, I just have to open it from time to time. :)
www.kirl.nl
Challenge Trophies Won:

Offline Knurz

  • Atari ST
  • ***
  • Posts: 108
  • Karma: 25
    • View Profile
Re: [CUBES] HTTSC
« Reply #19 on: May 27, 2012 »
Source Code for httsc.

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



Remember what the dormouse said: Feed your head