Please Enable JavaScript
IOCCC image by Matt Zucker

The International Obfuscated C Code Contest

2024/tmarrec - Prize in cyclonic coding

3D tornado simulation

← 2024/straadt ↑ 2024 ↑ 2024/tompng → C code Makefile Inventory Original C

Author:

Award presentation:

Watch the Our Favorite Universe YouTube show for this entry:

IOCCC28 - 2024/tmarrec - Prize in cyclonic coding

To build:

 make all

To use:

 clear; ./prog

Try:

 ./try.sh

Alternate code:

The original submitted entry was flickering when executed. This alternate code implements the original level of flickering.

The original submitted entry was flickering when executed. We added code to stop that. After adding this to the compile line:

 -DQ='fputs("033円[H",stdout);'

We changed the source as follows:

 make diff_alt_prog

Alternate build:

 make alt

Alternate use:

 ./prog.alt

Judges’ remarks:

This prize in cyclonic coding will certainly twist your perspective on C code.

This is not your garden variety tempest in a teapot. It’s a tornado in a window!

Author’s remarks:

3D fluid simulation

 advection=semi-lagrangian scheme
 projection=pressure solver with neumann boundary condition
 linear solver=gauss-seidel relaxation
 rendering=ray marching

Inventory for 2024/tmarrec

Primary files

Secondary files


Jump to: top

AltStyle によって変換されたページ (->オリジナル) /