Skip to content
项目

关于

A rough octree implementation to support frustum culling and raycasts in complex THREE.js scenes

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

threejs-octree

A rough octree implementation to support frustum culling and raycasts in complex THREE.js scenes.

NOTE: Code is generally unmatained and unfinished.

TODO

  • Max depth is needed in case there are a bunch of objects right on top of eachother
  • Consider adding an optimization using SAH and constricting the bounding boxes a a bit more
  • Provide an option for iteratively flushing all pending inserts because this can be expensive on cast operations
  • Raycasts can be a bit slow when the tree is large. This seems due to a lot of objects not being pushed down into leaves that are straddling an octant boundary.
  • Add, update, and remove operations are all delayed at the moment as well as the objects being pushed down into the tree -- we shouldn't need both (or either? Remove them?)
  • Optimize object removal.
  • Use something like an SAH algorithm to decide when to split.
  • Shrink the bounds to a size that optimially constrains the child objects?

探索相关项目

加载中…