COMPO · SAT 20:30
Executable Graphics
One still image, generated by code in 4 kilobytes. No image files allowed.
- Size limit
- 4096 bytes
- Deadline
- Sat 5 Apr, 15:00
- Platform
- GLSL fragment shader · compo PC
- Prize
- 150 EUR + a printed A2 of the winner
- On screen
- static, held 20 s on screen
A single frame. No animation, no sound, no bundled textures. You get 4096 bytes of code that must paint one still image, and that image goes on the wall. The winning entry gets printed at A2 and taped up in the hall for the rest of the weekend.
Rules
- 4096 bytes of source or executable, your choice of pipeline as long as it runs on the compo PC.
- No raster input. Every pixel comes from your math. Noise functions are
allowed; loading a
.pngof clouds is not. - Fixed output resolution 1920x1080. We screenshot the compo machine; you do not get to hand us a pre-rendered file.
Technique
Executable graphics lives and dies on material and light. A raymarched scene with one interesting surface, real shadows, and a considered palette will beat a busy fractal every time. Spend your bytes on the look, not the geometry.
A tiny signed-distance scene fits in surprisingly little code:
float map(vec3 p){
float d = length(p) - 1.0; // a sphere
d = min(d, p.y + 1.0); // a floor
return d - 0.04*sin(8.0*p.x)*sin(8.0*p.z);
}
From there it is all lighting: one sun, soft occlusion, a horizon that is not pure black. Grade the final color like a photographer. The judges are looking at a print, so contrast and composition carry more weight than raw shader cleverness.