Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

How to dig ground, remove soil and pour the soil somewhere else?

$
0
0
Hello Unity Developers, I am trying to make a simple simulator for an excavator similar to the one shown in this video https://www.youtube.com/watch?v=5B4Yyvqfj1w&ab_channel=Veritasium **Solutions I tried** 1. Tessellate and then modify the vertices in the shader - https://www.youtube.com/watch?v=Sr2KoaKN3mU&ab_channel=PeerPlay The problem is that the original mesh in the CPU doesn't change as tessellation and vertex modification all happen in the GPU. For me, the original mesh as well as the mesh collider should change so that physics works according to the actual geomety. 2. Deforming a Mesh at Runtime Based on Collisions - https://www.youtube.com/watch?v=l_2uGpjBMl4&t=32s&ab_channel=WorldofZero Here, everything happens in CPU which I think would be hectic for the CPU. Please provide suggestions or changes to the solutions I have already tried or any alernate solution is also welcome. Regarding simulating the soil, I have no idea from where to start. Any references or solutions I can start with are really appreciated. Thank you!

Viewing all articles
Browse latest Browse all 287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>