Documentation Index
Fetch the complete documentation index at: https://hyperscape-ai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The3d-asset-forge package provides AI-powered tools for generating game assets:
- MeshyAI for 3D model generation
- GPT-4 for design and lore generation
- React Three Fiber for 3D preview
- Drizzle ORM for asset database
Package Location
Features
Design Generation
Use GPT-4 to create asset concepts:- Character descriptions
- Equipment designs
- Environment elements
- Lore and backstories
3D Model Creation
MeshyAI converts concepts to 3D models:- Text-to-3D generation
- Style consistency
- Multiple variations
Equipment Fitting
Advanced equipment positioning system for VRM avatars:- V2 Export Format: Relative matrix approach for accurate positioning
- Captures position, rotation, and scale in single transform
- Eliminates scale hacks and coordinate space conversions
- Backward compatible with V1 format
- Tool Support: Pickaxes, hatchets, and fishing rods
- Tools category in equipment panel
- Proper grip detection and orientation
- Scale Preservation: Equipment scale correctly preserved during export
- Compensated scale counteracts bone world scale
- Avatar height normalized to 1.6m (matches Hyperscape)
Asset Management
Database-backed asset management:- PostgreSQL via Drizzle ORM
- Asset metadata tracking
- Generation history
3D Preview
React Three Fiber powered preview:- Real-time 3D viewing
- Hand pose detection (TensorFlow)
- VRM avatar support
Tech Stack
| Technology | Purpose |
|---|---|
| Elysia 1.4 | API server with CORS, rate limiting, Swagger |
| React Three Fiber 9 | 3D rendering in React |
| TensorFlow.js | Hand pose detection for VR/AR |
| Drizzle ORM | PostgreSQL database |
| Zustand 5 | State management |
| Tailwind CSS | Styling |
| Vite 6 | Build tool |
Configuration
Running
Development
- Frontend: http://localhost:5173
- API: Runs via Elysia
Production
Commands
Asset Pipeline
Output Formats
| Format | Purpose |
|---|---|
| GLB | 3D models |
| VRM | Avatars |
| PNG/WebP | Textures |
Dependencies
| Package | Purpose |
|---|---|
elysia | API server |
@react-three/fiber | 3D rendering |
@react-three/drei | 3D helpers |
drizzle-orm | Database ORM |
@pixiv/three-vrm | VRM support |
zustand | State management |
Integration
Generated assets can be used in the main game by placing them inpackages/server/world/assets/.
Asset Forge is optional—the game works with existing assets. It’s a separate tool for creating new content.