Re:The Vanishing Of Ashlar: 4kb demo using GPU for sound and...
by jl6 on Tuesday May 26, 2020 @10:24AM
(#23311506)
How much functionality does a demo like this get for free in addition to its own 4KB of code? For example, do modern GPUs have rich functions like createAmazingFractalGeometry() which these demos then piece together?
[ Parent
| on HN ]
Re:The Vanishing Of Ashlar: 4kb demo using GPU for sound and...
by solinent on Tuesday May 26, 2020 @10:47AM
(#23311826)
It's usually quite small--fractal geometry can be very succinctly described in a parametric way. The mandelbrot set can be described with just a small equation and a range of values to display.
They're not getting much from the GPU at all. Procedural modelling Houdini style is very common and you will find that algorithms to describe models/textures are often quite small, especially when compressed.
These days we do a lot of procedural generation of content, but then we don't make the user re-generate it because it does have a performance penalty--GPUs have plenty of RAM and tons of bandwidth, so it usually doesn't make sense.
source: Did some dev work on Houdini
Re:The Vanishing Of Ashlar: 4kb demo using GPU for sound and...
by thewebcount on Tuesday May 26, 2020 @02:43PM
(#23314891)
A lot of the geometry looked to me like it was done using constructive solid geometry, which usually uses signed distance fields. These can be represented very succinctly. See [0] for details.
[0] https://www.iquilezles.org/www/articles/distfunctions/distfu...
Re:The Vanishing Of Ashlar: 4kb demo using GPU for sound and...
by bri3d on Tuesday May 26, 2020 @12:13PM
(#23312955)
yes and no. the usual rule is that you're allowed the "basic installation" of the OS and GPU drivers present on a demoparty computer. the fractal geometry example is a poor one since fractal geometry requires minimal shader code to generate, but if you were to trace a modern windows 4k demo it does probably run at least a few MB (if not tens of MB) of executable code between the shader compiler, the GPU driver upload process, etc.