r/howdidtheycodeit • • Jun 01 '21

Teardown smoke simulation

How does it work?

52 Upvotes

9 comments sorted by

13

u/m0nkeybl1tz Jun 01 '21

Looking on his Twitter account, he mentions APIC fluid simulation, so maybe that?

9

u/LivelyLizzard Jun 02 '21

1

u/[deleted] Jun 02 '21

I was amazed when I found out he made/worked on sprinkle, I used to play that game so much, also does not commute if I remember correctly he also worked on

0

u/[deleted] Jun 02 '21

[deleted] — view deleted comment

2

u/titomakanijr Jan 19 '22

I believe they are just billboard particles that get raymarched. If you use Renderdoc you can grab a frame from Teardown and see exactly how everything is rendered.

3

u/[deleted] Jun 02 '21

The smoke and the real time raytracing that can even run on old hardware is amazing

2

u/FUTURE10S Jun 02 '21

Just because card manufacturers advertise a second chip as raytracing hardware doesn't mean the normal GPU can't do raytracing. I had a university assignment where I managed to get raytracing work on the CPU, no GPU, at about 2 seconds a frame.

2

u/[deleted] Jun 02 '21

Yeah obviously, I’m just remarking on old hardware can do it real time rather than rendering in blender which would probably take longer

14

u/[deleted] Jun 01 '21

[removed] — view removed comment

10

u/nwb712 Jun 01 '21

Henceforth I shall refer to any code I do not understand as "advanced witchcraft." Gave me a good laugh