- Home /
Butcher-like blood physics and rendering
Hello Everyone!
I've been wondering about this for days now and the question about how this could be done is really bugging me. Have a look at this gif and see how the blood of the guy killed in the first frame spills on the floor (you can see entire thing here). How could I achieve such effect in Unity? The enemies explode into streams of blood that seems to fall on the ground and walls to start penetrating them. When the floor is not thick enough (you can see it in the linked YouTube video), then the blood starts dipping from the ceiling below. So far I was considering following solutions:
Create entire blood simulation on a texture using Texture2D.SetPixels but this would require updating the texture in each frame so performance would not be great
Use particles and RenderTexture to render the trails of the particles and then mask the RenderTexture with the floor sprites and draw it over entire frame. This seems difficult as Effectors cannot be applied to particles thus making it difficult to create effect of wall/floor penetration.
I want to avoid having pre-made blood sprites with blood splashes and generate the entire simulation in the runtime. There is also difficulty in the fact that Butcher's levels are pretty big so this cannot be done in one big texture with blood that would span over entire level. Do you have any suggestions how could this be done? I would appreciate any hints on how to achieve such effect.
Your answer
Follow this Question
Related Questions
Destroy GameObject on touch of Collider C# 1 Answer
Bloodstream flow 0 Answers
Get a mouse object click 1 Answer
Need Help on Obj Movement via Mouse (particular physics rulles) 1 Answer
Recolor Grass 0 Answers