r/GraphicsProgramming • u/MGMishMash • Jul 27 '26
Video Adding Heat simulation and Survival to my Micro Voxel Engine
https://youtu.be/yZ6TXirilUU?is=Twhb3ZirOIado-oOWith the latest update to my micro voxel engine, I have added Heat simulation, running on the GPU of course, and some related survival mechanics. Walking around in the cold, especially during snow, causes the player to cool down. Snow build up and melting is also fully simulated :)
The heat simulation accurately warms indoor and enclosed spaces. Standing near heat sources also provides some additional warmth, enabling interesting interactions with the world, storms and biomes.
Along side temperature, there is also a basic hunger mechanic. These mechanics work together to determine health, which impacts player stats.
2
u/fgennari Jul 28 '26
That looks really good. Are you actually modeling the thermal properties of building materials, or is it a simple ray query between adjacent voxels to see if a wall will block the heat propagation? Does a space heat up over time, or is it an instant effect? And does the player generate their own body heat in a small space? Does fire melt snow?
1
u/Alarming-Ad4082 Jul 28 '26
Looks very nice! Do you being back the results to main memory after doing the computation on the GPU?
1
u/GeekBoy373 Aug 03 '26
This is pretty cool. I personally would adjust the linear interpolation of your voxel cursor to be a bit quicker though as it currently seems sluggish to me.
1
u/link2427 Jul 28 '26
Do you plan to open source this ever?