Questions tagged [demoscene]

The demoscene is comprised of programmers, artists, and musicians who produce audio/visual presentations that are computed in real time on a computer, often with limited hardware capabilities or extreme constraints on program sizes.

The demoscene tag is for questions related to techniques used to produce real-time audio and video effects under constraints required by demoscene conventions, like extremely small executable sizes or running on older hardware.

  • Demos are audio/visual productions computed in real time using an executable that is bounded to a maximum size, typically 64 KB.
  • Intros are similar productions that are even more severely size constrained, typically to just 4 KB.
  • Effects are animations that often rely on cleverness in order to compute quickly using extremely small code and/or data.

There is significant overlap between demoscene topics and video games. The key differentiation between them is that video games are interactive while demos typically are not. Video games are typically designed and implemented to create an enjoyable experience for gamers using modern hardware. Demos are generally produced by small groups of hobbyists who are interested in exploring the limits of what can be done on older hardware or within other arbitrary limits like 64 KB caps on executable size.

18 questions
36
votes
7 answers

How to use VC++ intrinsic functions w/o run-time library

I'm involved in one of those challenges where you try to produce the smallest possible binary, so I'm building my program without the C or C++ run-time libraries (RTL). I don't link to the DLL version or the static version. I don't even #include…
Adrian McCarthy
  • 45,555
  • 16
  • 123
  • 175
28
votes
4 answers

How can I learn the insane art of 4K democoding?

I love the demoscene a lot, especially those small 4K exefiles. They don't have any dependencies except for the files already found in windows and they exhibit the awesome power of programming: 3D graphics + sound, all in 4K. How is this possible?…
George
  • 15,241
  • 22
  • 66
  • 83
24
votes
2 answers

How to traverse cyclic directed graphs with modified DFS algorithm

OVERVIEW I'm trying to figure out how to traverse directed cyclic graphs using some sort of DFS iterative algorithm. Here's a little mcve version of what I currently got implemented (it doesn't deal with cycles): class Node(object): def…
BPL
  • 9,632
  • 9
  • 59
  • 117
19
votes
1 answer

Tutorials on Creating Demoscenes

Context: Watch: http://www.youtube.com/watch?v=AWcbj7ksqwE I'm familiar with OpenGL / GLSL / C++ / C I've done some audio programming. Never mind trying to compress it down to 64k or 4k for the moment. I don't even know how to procedurally…
user1311390
16
votes
3 answers

64kB demos, how do they work?

I've seen some programs showing amazing highly detailed 3d scenes with soundtracks, but what shocked me is that they are all smaller than 64kB! How do these programs work?
xzhu
  • 5,675
  • 4
  • 32
  • 52
15
votes
4 answers

What is the "side scrolling hack" from old games?

I have heard that old arcade side scrolling games used a specific programming hack to enable performant side scrolling. I understand that years ago the machines weren't powerful enough to repaint the whole screen every frame as it's done nowadays.…
Kos
  • 70,399
  • 25
  • 169
  • 233
13
votes
4 answers

Demo (FX) Coding Tutorials?

I'm looking for a few good tutorials to get me started in demo coding. I have some background in CG but it's all rather theoretical. There are many regular 3D programming tutorials, but I'm especially looking for some old school 2D stuff.
newgre
  • 5,245
  • 4
  • 31
  • 41
6
votes
4 answers

What languages or methods allow graphics & music demos to fit in 64kb EXEs?

How is it possible that in a 64kb compiled exe, these programs can generate such crazy visuals, complete with matching music? An example: Ars Nova By Phantom Lord (YouTube video of the demo running) This program's only 64kb in size! How did they do…
Synxmax
  • 2,226
  • 1
  • 22
  • 38
6
votes
5 answers

How do demomakers attain ultra small filesizes?

When I watch demoscene videos on youtube the author's often boast of how their filesizes are 64kb or less, some as few as just 4kb. When I compile even a very basic program in C++ the executable is always at least 90kb or so. Are these demos written…
devmabbott
  • 69
  • 2
4
votes
3 answers

Realtime raytracing -- Sult (Loonies, 4k Intro)

I'd like to know how were effects from Sult (link: http://www.youtube.com/watch?v=FWmv1ykGzis) achieved. How is it possible that this intro does realtime raytracing ?
jsmith
  • 367
  • 1
  • 4
  • 12
4
votes
2 answers

kkrunchy - how to get rid of the tls data in a Delphi executable?

Just for fun and giggles I'm trying to create a 64k intro in delphi. One of the best executable packers for applications of this size is kkrunchy by Farbrausch. However, when I run it on an (otherwise empty) Delphi executable, I get the following…
Paul-Jan
  • 16,746
  • 1
  • 63
  • 95
3
votes
1 answer

What counts towards demo scene size restrictions?

So I wanna make a small (64k) demo--nothing super impressive, just for the coding experience. I've been wondering, what exactly counts towards a byte count? For example, I could embed Lua as a scripting language once I have a simple demo engine…
semisight
  • 914
  • 1
  • 8
  • 15
2
votes
2 answers

Animation effect in .NET?

Can someone point me to a C# open source implementaion with a simple image animations. e.g. I feed the input image to animator, and the animation code produces a few dozen of images which if displayed sequentially looks like animation. I am not…
Optimizer
2
votes
0 answers

How to create small exe in Visual C++

I need to create exe file smaller that 64KB. In previous project I was able to do 4KB by using crinkler and not using any classes or std library. I'm using Visual Studio Express 2012. In my current project I'm using classes a lot, but I would like…
LovelyHanibal
  • 317
  • 2
  • 13
1
vote
1 answer

Compiling sstrip from ELFkickers for Ubuntu10.04 : asm/elf.h problems

I'm playing around with creating tiny executables under linux. My attention has come to a formerly used tool from Muppetlabs.com named sstrip from the ELFkickers collection (http://www.muppetlabs.com/~breadbox/software/elfkickers.html) It strips…
Rock
  • 1,216
  • 2
  • 12
  • 20
1
2