Dark Bit Factory & Gravity
GENERAL => Challenges & Competitions => Topic started by: da_fatstuff 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 (http://iquilezles.org/www). It's packed with Crinkler 1.1a http://www.crinkler.net (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
-
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 ;)
-
I totally like that.
Even the colours :)
Thanks for supporting the challenge mate, it is really appreciated! And welcome back.
-
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:
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.
-
CK, it's probably a shaders problem mate.
Perhaps your card doesnt support them.
-
It's a distinct possibility. My computer at work also gives the same error.
I'll put it down to a hardware problem.
-
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:
v=vec4(gl_Vertex.xy, 63.0*gl_Color.x, 1.0);I suggest to check your shader-code with GLSL Validate (http://3dshaders.com/home/index.php?option=com_weblinks&task=view&catid=13&id=28) as ATI's compiler is somewhat pickier with the syntax.
-
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 :)
-
If you have uploaded the newest version I'll happily test it again.
-
I meant to mention that - I've replaced the download at the top of the Thread with the new (and hopefully working one), cheers!
-
Awesome release. Great one!!!
Like the effect and the colors, too!
-
Pretty cool effect!
It does crash about 10 seconds in on my computer.
-
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?
-
Vista Home Basic
ATi Radeon 1100 express.
-
It does crash about 10 seconds in on my computer.
The source is included; just start the debugger ;D
-
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
-
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 :)