I'm not an old-timer like all of these people with low IDs posting here, but I've been coming here for 11 years (some of them as a lurker, some of them as a registered user) and it's sad to see you go. Thank you very much, and good luck with your future projects!:)
CD quality audio is 44.1 KHz, not kbps. As each audio sample is 16 bit wide, the total bit rate in a CD audio stream is 1411.2kbps (44.1 * 2 channels * 16).
/* Look ma! No libc */
const char msg[]="Hello World\n";
void _start(){// write (1, msg, 12);
asm("int $0x80;"::"a"(4),"b"(1),"c"(msg),"d"(12));// exit(0);
asm("int $0x80;"::"a"(1),"b"(0));
}
$ gcc -m32 -Os -nostdlib -nostartfiles -s -o test test.c
$ wc -c test
436 test
$./test
Hello World
And this is just scratching the surface. Of course, in a real 4K you would want to use some compression, too, as pointed by another replies.
So tell us, how'd they pull it off? Specifics, please.
Well, a full-fledged engine is obviously overkill for a 4K intro. Usually you code the specific effects you want to show directly into the intro, and generate on the fly all the data you can, so you don't store triangles or sound waves, but the parameters for some formula you have coded. And you do this in the most compressor-friendly way you can:D. In4K is a wiki with useful tips and discussions for 4K intro coders.
You can find lots of information at Iñigo Quilez's (the main coder of Elevated) home page, too.
Sure it's one setup, but it's hardly "required" otherwise it wouldn't have been possible to do the same trick with the wii-mote.
The wiimote acts as an infra-red camera (the "sensor bar" is a misnomer, it only has some leds), and IIRC the head-tracking trick involves a wiimote pointing at the user and some leds in the user's head.
after using a language for more than a couple weeks, you shouldn't need the editor to highlight keywords or function names or braces any differently.
But after using a language for more than a couple years, keyword highlighting still makes really easy to spot typing mistakes (like 'whlie' instead of 'while') on the fly.
I would a million times rather have the 1366x768 of 720i/p. The "720" in "720p" stands for the number of lines, and 1280x720 is exactly 720p. At least, that's what wikipedia says.
I'm not an old-timer like all of these people with low IDs posting here, but I've been coming here for 11 years (some of them as a lurker, some of them as a registered user) and it's sad to see you go. Thank you very much, and good luck with your future projects! :)
CD quality audio is 44.1 KHz, not kbps. As each audio sample is 16 bit wide, the total bit rate in a CD audio stream is 1411.2kbps (44.1 * 2 channels * 16).
Ouch, i thought the formatting would be preserved with tags. Posting as plain old text now :P
----- test.c
const char msg[]="Hello World\n";
void _start(){ // write (1, msg, 12); // exit(0); ./test
asm("int $0x80;"::"a"(4),"b"(1),"c"(msg),"d"(12));
asm("int $0x80;"::"a"(1),"b"(0));
}
---------
$ gcc -m32 -Os -nostdlib -nostartfiles -s -o test test.c
$ wc -c test 436 test
$
Hello World
And this is just scratching the surface. Of course, in a real 4K you would want to use some compression, too, as pointed by another replies.
So tell us, how'd they pull it off? Specifics, please.
Well, a full-fledged engine is obviously overkill for a 4K intro. Usually you code the specific effects you want to show directly into the intro, and generate on the fly all the data you can, so you don't store triangles or sound waves, but the parameters for some formula you have coded. And you do this in the most compressor-friendly way you can :D. In4K is a wiki with useful tips and discussions for 4K intro coders.
You can find lots of information at Iñigo Quilez's (the main coder of Elevated) home page, too.
His NVscene08 presentation "Rendering worlds with two triangles" is specially relevant here :)
I'm not a top intro coder, but I've made a few ones myself, so ask if you want more details ;)
Sure it's one setup, but it's hardly "required" otherwise it wouldn't have been possible to do the same trick with the wii-mote.
The wiimote acts as an infra-red camera (the "sensor bar" is a misnomer, it only has some leds), and IIRC the head-tracking trick involves a wiimote pointing at the user and some leds in the user's head.
Don't forget:
ci" - change all the text between quotes, from anywhere in the text
It also works with parenthesis and brackets :D
after using a language for more than a couple weeks, you shouldn't need the editor to highlight keywords or function names or braces any differently.
But after using a language for more than a couple years, keyword highlighting still makes really easy to spot typing mistakes (like 'whlie' instead of 'while') on the fly.