A real-time 3D graphics tutorial video on YouTube, demoing how to create an interactive 3D scene using THREE.js with WebGPU, featuring instanced meshes, dynamic noise-based transformations, and more.
- Instanced Mesh: Renders a grid of cubes using
THREE.InstancedMeshfor efficient rendering. - Dynamic Transformations: Applies noise functions to scale each cube dynamically and adjusts their colors based on noise.
- WebGPU Rendering: Uses the
WebGPURendererfor high-performance rendering. - Sprites Layer: Adds a background layer of sprites using a custom helper module (
libs/getLayer.js). - Responsive: Automatically adjusts the renderer and camera aspect ratio on window resize.
Ensure you have a local development server (such as live-server or http-server) to serve your files.
# Clone the repository
git clone https://github.com/bobbyroe/meta-cube.git
cd meta-cube- Three.js (WebGPU Renderer, Orbit Controls)
- Node.js (optional, for serving files locally)
Modify main.js to experiment with different Three.js objects, materials, or effects.
This project is licensed under the MIT License. Feel free to modify and distribute.
