Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to create Meshes from (GPU)Buffers instead of raw CPU data #195

Open
devshgraphicsprogramming opened this issue Oct 24, 2018 · 1 comment

Comments

@devshgraphicsprogramming

Since you guys already compute the BVHs on the GPU, what is the barrier to radeon rays creating meshes from GPU-sourced data?

It is a little bit bothersome that for initially GPU resident data would have to be pulled down to the CPU and re-uploaded to the GPU with the current API (or mapped, but there is often little mappable memory, its slower and it will still rely on the driver+CPU or DMA engine to move it across).

The fact that the createMeshes call is blocking is also bothersome, could we get a non-blocking version?

Finally, such an approach could save memory as a duplicate set of vertex positions would not need to be kept between i.e. OpenGL/Vulkan and Radeon Rays.
Note: I understand that unless your BHV approach sorts the actual vertices according to the hierarchy instead of some index list.

@devshgraphicsprogramming
Copy link
Author

devshgraphicsprogramming commented Oct 24, 2018

This would actually help address #163 since for example in the case of skinned meshes, I could write out my skinned vertex positions to VK/GL buffers via SSBO from shader and feed them to Radeon Rays' CreateMesh

(help, not solve, CreateMesh still needs a realtime alternative UpdateMesh or something like that for faster BVH update/recreation)

@devshgraphicsprogramming devshgraphicsprogramming changed the title Ability to create Meshes from Buffers instead of raw CPU data Ability to create Meshes from (GPU)Buffers instead of raw CPU data Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant