Forgere / fiber-screen-kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 61.6%Language:TypeScript 33.6%Language:CSS 4.0%Language:HTML 0.8%