Comments (2)
Doing anything in a compute shader means that the data you are operating on must exists in the GPU memory. This is fine if your only goal is to render the object but most of the time you would want to perform further operations on the results that maybe difficult or impossible to implement on the GPU, for example generating a collider for collisions.
This means you would be required to read the data back from the GPU memory. This can be a slow process that can negate any benefit of doing the operation on the GPU in the first place. Modern GPU's are a lot faster at this than they use to be and async methods are available so it may not be such a issue.
It depends a lot on the minimum shader model you are willing to support and how the GPUs driver is implemented. In some cases even a small read back can case a large stall as the driver will flush the GPU pipeline and stop whats its doing just to send your data back.
from marching-cubes-on-the-gpu.
Just a random note here, if you're worried about not having the mesh on the cpu for collision, you should consider collision with the volumetric data itself. That's what Nel used for Meor and it works pretty well.
from marching-cubes-on-the-gpu.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marching-cubes-on-the-gpu.