tensorflow / tensorflow/graphics

Bounding volume hierarchies for collision detection/raycasting

Open
#288 2 comments 0 reactions 1 assignee View on GitHub

@G4G is already working on this.

Since May 4, 2020.

Dominant language
Python
Stars
2.8k
Forks
374
PR merge metrics
No merged PRs in 30d

Description

I'm interested in implementing a GPU accelerated BVH module based on Morton Codes along the lines of this. I have written a very naive version of the tree construction function here as a demo for what this could look like.

BVH functionality would be useful in a number of applications including physics and rendering, and one tree could support multiple operations including raycasting, one-to-many, and many-to-many collision detection.

My example places heavy assumptions on the tree structure (complete, k-ary) and can treat it as a single tensor, but more advanced versions might warrant some kind of abstraction like a Tree class. I'm not sure what the right approach would be for fitting this in with the rest of the API.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.