playcanvas / playcanvas/engine

Mesh Picker BVH Improvements

Open
#4,645 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: graphics enhancement performance
Dominant language
JavaScript
Stars
16.8k
Forks
2k
Avg merge
4h 32m
Merged PRs (30d)
222

Description

https://github.com/playcanvas/engine/pull/4637 implements ray mesh-intersection. However, for animated scenes, it only refits the bvh when the mesh updates. This will result in the bvh losing quality over time, so it must be rebuilt after a certain number of frames. However, bvh building is currently not efficient enough for this to be seamless. In the future, a more efficient build method for the bvh must be implemented.

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.

Research direction

Start by reviewing pull request 4637 and the ray mesh-intersection BVH behavior for animated scenes. Determine how BVH quality should be monitored and when rebuilding should occur, then evaluate the build-cost tradeoff; done means animated meshes retain usable intersection quality without making frame processing impractical.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.