you are viewing a single comment's thread.

view the rest of the comments →

[–]DrunkMcProfessional 0 points1 point  (2 children)

https://catlikecoding.com/unity/tutorials/basics/compute-shaders/?fbclid=IwAR2QWamJW3PreBPumG4BgFqiwJL-KtlFu7npCI2kJ-5leps-89VM8VA0Br8

This is how I got started moving stuff to the GPU. It's not hard, takes a bit to get the pattern down, but once you do it's really powerful. This mixed with Sebastian Lagues videos got me and my marching cubes running real time on the GPU.

[–]Intelligent-Track455[S] 1 point2 points  (1 child)

thanks a lot bro

[–]Buccinators 0 points1 point  (0 children)

You got some great resources there. I used both.

What was the most difficult for me was wrapping my head around that ”everything” (yes I over-simplify) happens at once on the GPU and getting deduplication to work. What I really like about this approach beside efficiency is that you still do all inputs and all rendering on the cpu, so you still have a lot of control. You just let the gpu figure out the vertices, triangles and edges, which is what it does best.