frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Realistic procedural fire effect via naive algorithm

https://fx.leftium.com/fire-plasma
2•Leftium•1h ago
Source code: https://github.com/Leftium/fx/blob/main/src/routes/fire-plas...

I made this naive fire effect as realistic as possible; arguably more realistic than some simulations based on real fire fluid dynamics[1]. The naive algorithm uses a kernel to simulate convection, diffusion, and cooling of heat. Described in more detail by Joakim Hårsman[2]. Also see working demo of the OG fire algorithm by Justin Greisiger Frost[3]

While canvas + CPU gets surprisingly good performance, this effect would probably run much faster on the GPU. On mobile, this version is sized to work better: https://fx.leftium.com/fire-plasma?standardSize=0&text=Le

In my improved version, flames "lick" the bottom of the floating text. This is my favorite part. It was totally unexpected and just emerged from the algorithm. Compare to Joakim's version by changing the text: https://fx.leftium.com/fire-plasma?text=%E2%97%AF

Major improvements over prior art:

- True-color fire gradient/palette with transparency looks decent over non-black backgrounds : https://fx.leftium.com/fire-plasma?bgColor=

- Fire seeded with perlin noise + brownian fractal movement: fire is overall less uniform while avoiding "random mess" at base of fire: https://fx.leftium.com/fire-plasma?fireSeedIndex=3

- More complex fire kernel for more realistic looking fire

This was one of the first projects I have recently worked on without the assistance of a coding agent. I only chatted with LLM's a few times to get ideas and help with type errors. As a result, I feel this project took more time, but the code is more succinct/hand-crafted.

---

I wonder if anyone can find other pleasing values for the fractal noise seed. The values can be adjusted via URL params like this: https://fx.leftium.com/fire-plasma?octaves=4&lacunarity=2&ga...

You can also view the perlin noise by itself using this URL: https://fx.leftium.com/fractal-noise?octaves=4&lacunarity=2&...

For a description of octaves, lacunarity, gain, etc: https://gamedev.stackexchange.com/a/197862/229

[1]: https://www.escapemotions.com/experiments/fluid_fire_3/

[2]: https://ghostinthecode.net/2016/08/17/fire.html

[3]: https://jdfio.com/pages-output/demos/x-mode/

Arithmetic Pedagogy for Language Models

https://arxiv.org/abs/2606.05106
1•berlianta•1m ago•0 comments

Wordplay: Accessible, Multilingual, Programmable Typography

https://wordplay.dev/
1•azhenley•1m ago•0 comments

Automatic Generation of Titles for Research Papers Using Language Models

https://arxiv.org/abs/2606.05085
1•berlianta•2m ago•0 comments

The DX3270 Terminal Emulator for Mac Now Serves TN5250 as Well

https://dn3270.com/
1•el_dockerr•6m ago•0 comments

2025 Social Security Trustees Report [pdf]

https://www.ssa.gov/OACT/TR/2025/tr2025.pdf
2•latentframe•10m ago•0 comments

Same Weights, Different Robot: A Deployment Safety View of VLA Policies

https://arxiv.org/abs/2606.03724
1•sbulaev•12m ago•0 comments

Forge: Multi-Agent Graduated Exploitation and Detection Engineering

https://arxiv.org/abs/2606.03453
1•sbulaev•14m ago•0 comments

Overview of Digital Accessibility Technologies

https://vale.rocks/posts/digital-accessibility-technologies
1•OuterVale•20m ago•0 comments

Unreasonable Spirit in Silicon Valley

https://feitong.phd/essays/go-to-sillicon-valley/
1•planeyang•22m ago•0 comments

A population-scale synthetic dataset for El Salvador

https://huggingface.co/datasets/nvidia/Nemotron-Personas-El-Salvador
1•repeator2•25m ago•0 comments

Show HN: iPhone ANE holds LLM tok/s while MLX and LiteRT thermal-throttle

https://github.com/john-rocky/apple-silicon-llm-bench
1•mlboy•27m ago•0 comments

Fast Branchless Quicksort Using Sorting-Networks with C and C++ Interface

https://tiki.li/blog/blqsort
1•signa11•30m ago•0 comments

Proposta TLBIC v4.1 (PT-BR): construída com IA, para chegar a quem mais precisa

1•michikawa59•36m ago•0 comments

Why Only Cars Have ADAS Not Tow Wheelers?

1•WalkeROT•37m ago•1 comments

MCP-Gateway

https://github.com/MikkoParkkola/mcp-gateway/
1•akaralar•37m ago•0 comments

Be Delusional

1•lastofus_mirage•38m ago•1 comments

Floating-Point Error Handling in C++: What Works

https://johnnysswlab.com/floating-point-error-handling-in-c-what-actually-works/
1•signa11•38m ago•0 comments

Optimizing for Text-Mode Browsers

https://log.schemescape.com/posts/web-development/designing-for-text-browsers.html
2•zdw•39m ago•0 comments

A wiki in a single file? A look at Feather Wiki

https://hamatti.org/posts/an-entire-wiki-in-a-single-file-a-look-at-feather-wiki/
1•Tomte•39m ago•0 comments

Revo, the Programming Language

https://if-not-nil.github.io/revo/blog/apples/
1•signa11•44m ago•0 comments

RenderLab – Prototype rendering techniques and renderers in the browser

https://pub.prklinteractive.com/renderlab-alpha
2•prkl•46m ago•0 comments

SpaceX IPO to Be Largest Ever at $135 Share Price

https://www.nytimes.com/2026/06/03/technology/spacex-ipo-pricing.html
3•greenburger•51m ago•0 comments

The SpaceX IPO Will Be the Theft of the Century

https://montanaskeptic.substack.com/p/the-spacex-ipo-will-be-the-theft
8•400thecat•51m ago•3 comments

The Industrialization of Academic Research

https://blog.computationalcomplexity.org/2026/06/yesterday-academy-of-sciences-president.html
1•zdw•56m ago•0 comments

1979: Will Word Processors start a home working revolution?

https://www.youtube.com/watch?v=b6URa-PTqfA
1•azinman2•59m ago•0 comments

Fired 60 Minutes Scott Pelley: CBS told to inject 'falsehoods' into reporting

https://www.theguardian.com/media/2026/jun/03/60-minutes-scott-pelley-cbs-accusations
4•mgh2•1h ago•0 comments

Uber slashes people division by nearly 25%; CEO says 'changes are necessary'

https://www.cnbc.com/2026/06/03/uber-layoffs-people-division-ai.html
3•1vuio0pswjnm7•1h ago•1 comments

Microsoft EXecution Container (MXC)

https://github.com/microsoft/mxc/tree/main
2•jonathanlydall•1h ago•0 comments

Bitcoin Falls to Pre-Iran Conflict Low as Crypto Slide Extends

https://www.bloomberg.com/news/articles/2026-06-04/bitcoin-btc-falls-to-pre-iran-conflict-low-as-...
1•1vuio0pswjnm7•1h ago•0 comments

Show HN: Realistic procedural fire effect via naive algorithm

https://fx.leftium.com/fire-plasma
2•Leftium•1h ago•0 comments