lottery
🎉🌟✨🎈年会抽奖程序,基于 Express + Three.js的 3D 球体抽奖程序,奖品🧧🎁,文字,图片,抽奖规则均可配置,😜抽奖人员信息Excel一键导入😍,抽奖结果Excel导出😎,给你的抽奖活动带来全新酷炫体验🚀🚀🚀
A small, drop-in, pure-JavaScript Draco mesh loader for three.js.
A pure-JavaScript Draco mesh loader for
three.js. It's a drop-in DRACOLoader that decodes Draco-compressed triangle
meshes — both the EdgeBreaker connectivity used by glTF's
KHR_draco_mesh_compression and Draco's sequential connectivity — directly in
JavaScript.
Why a JS port instead of the official WASM build?
draco3d WASM decoder + glue (~5× smaller)..wasm fetch, no worker/glue setup,
no cross-origin or CSP headaches.You trade decode speed for a much smaller, simpler loader. This pays off most on pages with a single model, where the decoder is a one-time cost that isn't amortized across many meshes — the model often displays sooner end-to-end because the network savings outweigh the extra decode time.
Targets Draco bitstream version 2.2 — what current Draco encoders and glTF exporters produce. Older bitstreams (< 2.2) are rejected with an error.
Not implemented:
DRACOLoader is a drop-in replacement for three.js's own DRACOLoader — plug it
into GLTFLoader the usual way. There's no decoder path or WASM to configure
(setDecoderPath / setDecoderConfig are accepted but do nothing).
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { DRACOLoader } from './build/DRACOLoader.js';
const gltfLoader = new GLTFLoader();
gltfLoader.setDRACOLoader( new DRACOLoader() );
gltfLoader.load( 'model.glb', ( gltf ) => scene.add( gltf.scene ) );
It can also load standalone .drc files:
const geometry = await new DRACOLoader().loadAsync( 'model.drc' ); // BufferGeometry
DRACOLoader.js follows the API of three.js's
DRACOLoader
(MIT) so it drops into GLTFLoader unchanged.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