Voxel Toy Box (Appsgm Edition)
A high-fidelity 3D voxel sandbox and architectural playground powered by the Appsgm 3 (GenAI) engine. Create complex sculptures from scratch, dismantle them into a pile of blocks, and use those same blocks to rebuild entirely new structures.
🚀 Key Features
🛠️ Tech Stack
📥 Installation & Setup
Since this project utilizes ES6 modules directly in the browser via an import map, setup is straightforward:
1. Obtain an API Key: You need an API key for the Google GenAI SDK (Appsgm). 2. Clone the Repository:
git clone <repository-url>
cd voxel-toy-box
process.env.API_KEY is available in your environment. If running locally, you may need a local development server that supports environment variable injection or simply hardcode it (not recommended for production). 4. Run a Local Server: To avoid CORS issues and allow ES6 modules to load correctly, run a static server:
# Using Node.js npx
npx serve .
http://localhost:3000 (or the port provided) in any modern evergreen browser.
🎮 How to Play
1. Start: An Eagle model is loaded by default. 2. Break: Click the big BREAK button to dismantle the model into voxels. 3. Rebuild: Once broken, select a preset model (Cat, Rabbit, etc.) or click New rebuild to prompt Appsgm to design a new shape using the existing blocks. 4. Create: Use the Builds menu at the top left to generate an entirely new scene from scratch. 5. Share: Use the Share button to copy the JSON blueprint to your clipboard.
Created with ❤️ by the Appsgm Architect team.
A 3D voxel sandbox playground where you can generate, dismantle, and rebuild structures using AI-powered design and physics-based interactions.