fiber-screen-kit
v0.0.5
Published
Encapsulate commonly used components for building digital scenes, aiming to construct three-dimensional scenes faster, at a lower cost, and more efficiently.
Downloads
5
Readme
fiber-screen-kit
Encapsulate commonly used components for building digital scenes, aiming to construct three-dimensional scenes faster, at a lower cost, and more efficiently.
install
pnpm install fiber-screen-kit
- init scene
<Scene>
...other code
</Scene>
- load glb with bvh
<Model scale={[0.01, 0.01, 0.01]} url="/LittlestTokyo-transformed.glb"/>
- move obj with gsap
const animations = [{
property: "position",
from: [1, 1, 1],
to: [2, 2, 2],
duration: 2,
start: 1,
delay: 0,
}]
<Box position={[1, 1, 1]} animations={animations}/>
tools
translate .glb with pmndrs's tool
https://github.com/pmndrs/gltfjsx
npx gltfjsx public/LittlestTokyo.glb --transform