lottery
🎉🌟✨🎈年会抽奖程序,基于 Express + Three.js的 3D 球体抽奖程序,奖品🧧🎁,文字,图片,抽奖规则均可配置,😜抽奖人员信息Excel一键导入😍,抽奖结果Excel导出😎,给你的抽奖活动带来全新酷炫体验🚀🚀🚀
→ Write composable 3D behaviors like a story.
npm install three @react-three/fiber @react-three/timeline
| A simple timeline with 2 actions (look at red pill and look at blue pill) with an infinite loop | ![]() |
|---|
const camera = useThree((s) => s.camera)
const redPill = useRef<Mesh>(null)
const bluePill = useRef<Mesh>(null)
useRunTimeline(async function* () {
while (true) {
//transition to look at the red pill
yield* action({ update: lookAt(camera, redPill.current!, spring()) })
//transition to look at the blue pill
yield* action({ update: lookAt(camera, bluePill.current!, spring()) })
}
}, [])
return (
<>
<Text position-y={1} scale={0.3}>
Remember: all I'm offering is the truth. Nothing more.
</Text>
<mesh position-y={-1} position-x={-2} rotation-y={(-30 / 180) * Math.PI} scale={0.2} scale-z={0.4} ref={redPill}>
<sphereGeometry />
<meshPhysicalMaterial emissive="red" emissiveIntensity={0.5} color="red" />
</mesh>
<mesh position-y={-1} position-x={2} rotation-y={(20 / 180) * Math.PI} scale={0.2} scale-z={0.4} ref={bluePill}>
<sphereGeometry />
<meshPhysicalMaterial emissive="blue" emissiveIntensity={5} color="blue" />
</mesh>
</>
)
This project is supported by a few companies and individuals building cutting edge 3D Web & XR experiences. Check them out!
[ ] record, useRecordedTimeline, ... => allows to bind the timeline progress to any controls (e.g. scrolling); allowing using markers to attach scroll positions (e.g. button center screen) to the time of the timeline
more like this
🎉🌟✨🎈年会抽奖程序,基于 Express + Three.js的 3D 球体抽奖程序,奖品🧧🎁,文字,图片,抽奖规则均可配置,😜抽奖人员信息Excel一键导入😍,抽奖结果Excel导出😎,给你的抽奖活动带来全新酷炫体验🚀🚀🚀
🎥🤟 8 minimalistic templates for tfjs mediapipe handpose and facemesh
A repository about starting from scratch for monorepo, fastify, Phaser, colyseus, and threejs.
search projects, people, and tags