{"_id":"@worldmatrix/wmx-three-streaming","name":"@worldmatrix/wmx-three-streaming","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@worldmatrix/wmx-three-streaming","version":"0.1.0","private":false,"description":"Streaming refine-tree runtime for WorldMatrix assets on Three.js.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/worldmatrix/worldmatrix-private.git"},"homepage":"https://github.com/worldmatrix/worldmatrix-private#readme","bugs":{"url":"https://github.com/worldmatrix/worldmatrix-private/issues"},"keywords":["worldmatrix","threejs","streaming","lod","3d"],"type":"module","publishConfig":{"access":"public"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json"},"dependencies":{"@worldmatrix/wmx-core":"^0.1.0","@worldmatrix/wmx-three":"^0.1.0","meshoptimizer":"^0.25.0","three":"^0.182.0"},"devDependencies":{"typescript":"^5.8.2"},"_id":"@worldmatrix/wmx-three-streaming@0.1.0","gitHead":"52efde61891b8a4c1d4ae990a73b6868e9595632","_nodeVersion":"24.2.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-YyEmCVL2XQnEcPlLBNBR6EK8QT7jVV+jN9N2tTGBw9JYSVLn1jvXeZf/cpW11+UYVq4x4YChpyLYwlLL8LH31A==","shasum":"76fa959c3139edf4ec2edae32ac7f0c975275472","tarball":"https://registry.npmjs.org/@worldmatrix/wmx-three-streaming/-/wmx-three-streaming-0.1.0.tgz","fileCount":26,"unpackedSize":67059,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCB37wNouv+60bjkkxcGSBwGDlOlYdQW0oKlDWAuKBAEAIgf4uJXg+27P+hUsJhMMqB6MMt0Jlv/IV77wq83fGvMms="}]},"_npmUser":{"name":"hkahlon","email":"harshdeepkahlon00@gmail.com"},"directories":{},"maintainers":[{"name":"hkahlon","email":"harshdeepkahlon00@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wmx-three-streaming_0.1.0_1771215012947_0.04135081258112261"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-16T04:10:12.865Z","0.1.0":"2026-02-16T04:10:13.097Z","modified":"2026-02-16T04:10:13.308Z"},"maintainers":[{"name":"hkahlon","email":"harshdeepkahlon00@gmail.com"}],"description":"Streaming refine-tree runtime for WorldMatrix assets on Three.js.","homepage":"https://github.com/worldmatrix/worldmatrix-private#readme","keywords":["worldmatrix","threejs","streaming","lod","3d"],"repository":{"type":"git","url":"git+https://github.com/worldmatrix/worldmatrix-private.git"},"bugs":{"url":"https://github.com/worldmatrix/worldmatrix-private/issues"},"license":"MIT","readme":"# @worldmatrix/wmx-three-streaming\n\nStreaming refine-tree runtime for WMX manifests in Three.js scenes.\n\n## Install\n\n```bash\nnpm install @worldmatrix/wmx-three-streaming @worldmatrix/wmx-three three meshoptimizer\n```\n\n## Usage\n\nUse this when your WMX manifest includes `manifest.streaming`.\n\n```ts\nimport * as THREE from 'three';\nimport { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';\nimport { WMXLoader } from '@worldmatrix/wmx-three';\nimport { WMXStreamManager, WMXStreamedTileset } from '@worldmatrix/wmx-three-streaming';\n\nconst renderer = new THREE.WebGLRenderer({ antialias: true });\nconst scene = new THREE.Scene();\nconst camera = new THREE.PerspectiveCamera(50, 1, 0.1, 1000);\n\nconst wmxLoader = new WMXLoader(new GLTFLoader());\nconst tileset = await WMXStreamedTileset.fromManifestUrl('/wmx/my-asset/asset.wmx.json');\nscene.add(tileset);\n\nconst manager = new WMXStreamManager({\n  wmxLoader,\n  viewportHeightPx: renderer.domElement.clientHeight,\n  retention: 'cache',\n  disposeOutOfFrustumFrames: 30\n});\nmanager.add(tileset);\n\nfunction tick() {\n  camera.updateMatrixWorld(true);\n  tileset.updateMatrixWorld(true);\n  manager.update(camera);\n  renderer.render(scene, camera);\n  requestAnimationFrame(tick);\n}\ntick();\n```\n","readmeFilename":"README.md","_rev":"1-04baa58961da09c9e85c94f1cc3fc935"}