viverse-polygon-streaming-threejs

Integrate Polygon Streaming .xrg assets into Three.js scenes with StreamController.

2|1|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/viverseofficial/viverse-sdk-skills --skill viverse-polygon-streaming-threejs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: viverse-polygon-streaming-threejs
Source: https://github.com/viverseofficial/viverse-sdk-skills/tree/main/skills/viverse-polygon-streaming-threejs
Command: npx skills add https://github.com/viverseofficial/viverse-sdk-skills --skill viverse-polygon-streaming-threejs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes patterns (resource) components.

What problem does it solve?

This skill solves the complexity of integrating high-fidelity Polygon Streaming .xrg assets into Three.js applications, ensuring reliable loading, proper scene anchoring, and graceful fallback behavior.

Core Features & Use Cases

  • StreamController Integration: Provides a standardized wrapper for managing the lifecycle of streamed 3D models.
  • Predictable Fallbacks: Implements robust replacement policies to ensure the user experience remains intact if streaming fails.
  • Use Case: Use this skill when building a web-based 3D experience that requires dynamic loading of large, high-quality assets without sacrificing performance or scene stability.

Quick Start

Use the viverse-polygon-streaming-threejs skill to initialize the StreamController and mount a remote xrg asset into your Three.js scene group.

Frequently Asked Questions about viverse-polygon-streaming-threejs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stream high-fidelity 3D assets into Three.js?▼

You can stream high-fidelity 3D assets into Three.js by integrating Polygon Streaming .xrg files, managing service worker registration, and anchoring the model lifecycle directly to a scene group.

What is the best way to load large .xrg assets in a browser-based 3D web application?▼

Loading large .xrg assets in a browser-based 3D web application is best handled by a StreamController wrapper that manages dynamic model lifecycle, frame-accurate updates, and bounding-box based fitting.

Does Polygon Streaming work with Three.js for dynamic asset loading?▼

Yes, Polygon Streaming works with Three.js by registering a service worker to handle .xrg asset integration, ensuring reliable scene anchoring and event-driven success signaling during dynamic asset loading.

How do I handle fallbacks when 3D streaming fails in Three.js?▼

To handle 3D streaming fallbacks in Three.js, implement robust replacement policies within your StreamController to ensure the user experience remains intact if the .xrg asset streaming fails.

Can I fit dynamically loaded 3D models into a scene using bounding boxes?▼

Yes, you can fit dynamically loaded 3D models into a scene using bounding-box based model fitting, which calculates the spatial dimensions to accurately anchor high-fidelity assets within the environment.