0.0.5 • Published 1 month ago

fiber-screen-kit v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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
  1. init scene
<Scene>
  ...other code
</Scene>
  1. load glb with bvh
<Model scale={[0.01, 0.01, 0.01]} url="/LittlestTokyo-transformed.glb"/>
  1. 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
0.0.5

1 month ago

0.0.4

1 month ago

0.0.1

1 month ago

0.0.3

1 month ago

0.0.2

1 month ago

0.0.0

1 month ago