Skip to content

feat: Deoccluder and obstacles - #186

Merged
kvvasuu merged 15 commits into
mainfrom
feat/deoccluder
Dec 3, 2026
Merged

kvvasuu merged 15 commits into
mainfrom
feat/deoccluder

Conversation

@kvvasuu

@kvvasuu kvvasuu commented Dec 3, 2026

Copy link
Copy Markdown
Member
  • Deoccluder moves the camera along the line to its target until it is in front of whatever stands between them, and back once the way is clear. The target stays where it was on screen. minimumOcclusionTime lets obstacles that only pass by go, and smoothingTime keeps a row of obstacles from bouncing the camera.
  • klipp.obstacles, or <Klipp obstacles>, is the collision world pieces cast against, through one cast(from, to, radius). A piece can take its own obstacles instead. The docs show casting against Rapier and crashcat.
  • MeshObstaclesThree casts against the meshes of a three.js scene, every instance of an InstancedMesh and skinned meshes at rest included, with an exact sphere sweep through a tree of each geometry. With autoUpdate = false, a scene that stays put is read once and many meshes go through a tree over them. MeshObstacles in the core does the same for any renderer.
  • Docs for Deoccluder and Obstacles, a Deoccluder example with a walking subject, and obstacle cast benches (@obstacles).

@kvvasuu
kvvasuu merged commit b3da258 into main Dec 3, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant