vectojs-three
Installation
SKILL.md
VectoJS Three
Use this skill to place a live VectoJS 2D interface onto a Three.js texture and route 3D pointer input back into the VectoJS scene.
Integration workflow
- Install
@vectojs/core,@vectojs/three,three, and@vectojs/uiif using UI components. - Create one
ThreeAdapterper VectoJS panel texture. - Add VectoJS entities to
adapter.vectoScene, then start the inner scene. - Add
adapter.meshor the adapter texture/material to the host Three.js scene. - In the host pointer/wheel loop, raycast against the adapter mesh and call
adapter.updateIntersection(...). - Call
adapter.dispose()when removing the panel.
Read references/three-recipes.md for snippets.