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

Surface tracing #1

Open
1 of 4 tasks
loryruta opened this issue Sep 19, 2023 · 0 comments
Open
1 of 4 tasks

Surface tracing #1

loryruta opened this issue Sep 19, 2023 · 0 comments

Comments

@loryruta
Copy link
Owner

loryruta commented Sep 19, 2023

Now we generate both the volume and the surface on CPU. First the volume is generated, then geometry for the surface is generated on CPU. We did that because we thought we probably would need surface geometry for physics simulation. But it would probably result more performant to simulate the physics based on voxels.

So we keep volume generation host-side, and move surface generation device-side:

  • Remove any code involved in surface generation on CPU
  • Upload chunk octrees on GPU
    • Create a huge octree for the WorldView: individual octrees are dynamically allocated on a buffer while low resolution nodes can be statically allocated.
  • Ray trace the WorldView octree on GPU
  • Render an initial blocky surface

This issue will be followed by a Continuous Surface generation issue that will employ trilinear interpolation to make the surface continuous.

References:

@loryruta loryruta changed the title Move surface rendering on GPU Surface tracing Sep 19, 2023
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