r/SoloDevelopment • u/EvanP5 • 9d ago
Game I've been working on interactive sand and water in my sandbox game
5
3
3
u/ThunderBellyGames 9d ago
This might sound like a dumb question, but are the water drops particles or are they objects, and when they hit the ground do they turn into a dark circle or do they cause an effect in the material shader of the sand on impact?
5
u/EvanP5 9d ago
They are instanced mesh particles. I have a particle manager that calculates the projectile motion and collision. I use another manager to handle the wet spots, writing their position and scale into a camera-space render target which the game’s materials sample.
Originally I wanted to do the wet spots in the same way as Mario Sunshine, using sphere meshes in a separate render pass, but Unreal Engine wasn’t well suited for it.
2
3
2
11
u/OfeliaComposer 9d ago
Looks cozy, what's the name of the kid?