Author Topic: [Time Challenge] 1Koder Colour Clock  (Read 9034 times)

0 Members and 1 Guest are viewing this topic.

Offline da_fatstuff

  • C= 64
  • **
  • Posts: 38
  • Karma: 16
  • Stupid is forever, ignorance can be fixed
    • View Profile
[Time Challenge] 1Koder Colour Clock
« on: March 14, 2009 »
Hi,

To my shame I haven't posted at DBF in ages, so I was determined to enter a competition with something...even though nothing can better Digital Watch Brawl IMO!

Anyway, this proggy displays the system uptime in 1k with moving background colours (as that's what I like ;)) ... if you're lucky enough to have a system that's been up for >99 days, I probably wouldn't try it...

...basically it was for me to try using a GLSL shader with text in 1k...it means the shader is a bit simple, but my desired one just could not lose the last 64bytes that I needed to :( 

...to fit this in 1k there's some pretty bad practices going on in there - but the source is included in case of use/interest to anyone.  Obviously it's derived from information found on the DBF site, and IQ's site too http://iquilezles.org/www.  It's packed with Crinkler 1.1a  http://www.crinkler.net, unpacked version is included too.

It requires shaders (2 I guess), runs with 1024x768x32 display...and I've tried it on [XP64 NVidia 9600 GLI] and [XP ATI HD2600 PRO] and [Vista NVidia 7650 GS] without problems, so fingers crossed it'll behave for you.


[Edit] Corrected vertex shader code (some ATI cards)

[Edit] Re-uploaded the zip/piccy after DBF server crash
« Last Edit: September 06, 2009 by da_fatstuff »

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: [Time Challenge] 1Koder Colour Clock
« Reply #1 on: March 14, 2009 »
Works fine on Geforce 6600GT

Very nice idea, congrats for doing it in 1kb.
I don't like those colors but I know that at 1kb field we need to make some compromises ;)
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: [Time Challenge] 1Koder Colour Clock
« Reply #2 on: March 14, 2009 »
I totally like that.

Even the colours :)

Thanks for supporting the challenge mate, it is really appreciated! And welcome back.
Shockwave ^ Codigos
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: [Time Challenge] 1Koder Colour Clock
« Reply #3 on: March 14, 2009 »
Welcome back. Thanks for the feedback. I had no idea it was going to be so popular  O0

I tried both the crinkler and non-crinkler versions, but both give me the error:
Code: [Select]
1KCC.exe has encountered a problem and needs to close.  We are sorry for the inconvenience.

I'll try again on a different computer on Monday. This machine often has difficulty running new programs. I'll have to find out why.

From the screenshot I like the background pattern. I tried something similar once, but could not get it to run at any decent speed.
You are our 9001st visitor.
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: [Time Challenge] 1Koder Colour Clock
« Reply #4 on: March 15, 2009 »
CK, it's probably a shaders problem mate.
Perhaps your card doesnt support them.
Shockwave ^ Codigos
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: [Time Challenge] 1Koder Colour Clock
« Reply #5 on: March 16, 2009 »
It's a distinct possibility. My computer at work also gives the same error.

I'll put it down to a hardware problem.
You are our 9001st visitor.
Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: [Time Challenge] 1Koder Colour Clock
« Reply #6 on: March 16, 2009 »
Quote
Code: [Select]
v=vec4(gl_Vertex.xy, 63*gl_Color);ERROR: no operation '*' exists that takes a left-hand operand of type 'const int' and a right operand of type 'attribute 4-component vector of float'
ERROR: 'constructor' : not enough data provided for construction
You probably want something like this:
Code: [Select]
v=vec4(gl_Vertex.xy, 63.0*gl_Color.x, 1.0);I suggest to check your shader-code with GLSL Validate as ATI's compiler is somewhat pickier with the syntax.

Challenge Trophies Won:

Offline da_fatstuff

  • C= 64
  • **
  • Posts: 38
  • Karma: 16
  • Stupid is forever, ignorance can be fixed
    • View Profile
Re: [Time Challenge] 1Koder Colour Clock
« Reply #7 on: March 16, 2009 »
Thanks Hellfire for that tool, I'd not seen that before  8)

...I'd tried it on an ATI card here which worked, but I guess I just got lucky with that - I've now added a "." after the 63 and the tool validates it fine...and fortunately it didn't change the compressed byte-size.

Thanks again  :)

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: [Time Challenge] 1Koder Colour Clock
« Reply #8 on: March 16, 2009 »
If you have uploaded the newest version I'll happily test it again.
You are our 9001st visitor.
Challenge Trophies Won:

Offline da_fatstuff

  • C= 64
  • **
  • Posts: 38
  • Karma: 16
  • Stupid is forever, ignorance can be fixed
    • View Profile
Re: [Time Challenge] 1Koder Colour Clock
« Reply #9 on: March 16, 2009 »
I meant to mention that - I've replaced the download at the top of the Thread with the new (and hopefully working one), cheers!

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: [Time Challenge] 1Koder Colour Clock
« Reply #10 on: March 16, 2009 »
Awesome release. Great one!!!
Like the effect and the colors, too!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1382
  • Karma: 83
    • View Profile
Re: [Time Challenge] 1Koder Colour Clock
« Reply #11 on: March 17, 2009 »
Pretty cool effect!

It does crash about 10 seconds in on my computer.
Challenge Trophies Won:

Offline da_fatstuff

  • C= 64
  • **
  • Posts: 38
  • Karma: 16
  • Stupid is forever, ignorance can be fixed
    • View Profile
Re: [Time Challenge] 1Koder Colour Clock
« Reply #12 on: March 17, 2009 »
That's odd  :-\

Can't think it does much after 10 seconds that it doesn't do from the onset, although the uptime is a feed into the pattern so I guess it could be after any duration that the cause really happens...it's runtime checks are minimal to fit it in 1k, so maybe something else running on there throws this off course (although I have virus checkers and Spybot etc on my machines here, and it stays running on both my ATI/NVidia cards for longer than I can stomach to watch  :)) ...

...out of interest, what OS & Gfx card are you using there?

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1382
  • Karma: 83
    • View Profile
Re: [Time Challenge] 1Koder Colour Clock
« Reply #13 on: March 17, 2009 »
Vista Home Basic
ATi Radeon 1100 express.
Challenge Trophies Won:

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: [Time Challenge] 1Koder Colour Clock
« Reply #14 on: March 18, 2009 »
Quote
It does crash about 10 seconds in on my computer.
The source is included; just start the debugger ;D
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: [Time Challenge] 1Koder Colour Clock
« Reply #15 on: March 23, 2009 »
Quote
CK, it's probably a shaders problem mate.
Perhaps your card doesnt support them.

Nice picture and it doesnt work on mine as like shockwave say above  :(

Vista Basic
2GHZ
4GB Ram
1244MB Graphics

Offline da_fatstuff

  • C= 64
  • **
  • Posts: 38
  • Karma: 16
  • Stupid is forever, ignorance can be fixed
    • View Profile
Re: [Time Challenge] 1Koder Colour Clock
« Reply #16 on: March 23, 2009 »
I've just added a couple of links to the top of this Thread for KKapture movies of it running for those having problems displaying it - the long one is a complete cycle but is 100MB, the shorter one <26MB and is adequate to get the idea of what it does  :)