babylonjs-engine

Build real-time 3D web experiences with Babylon.js scenes, physics, and rendering.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/sixscripts-ai/agent-arena-voice --skill babylonjs-engine-sixscripts-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: babylonjs-engine
Source: https://github.com/sixscripts-ai/agent-arena-voice/tree/main/.claude/plugins/claudedesignskills/plugins/bundles/core-3d-animation/skills/babylonjs-engine
Command: npx skills add https://github.com/sixscripts-ai/agent-arena-voice --skill babylonjs-engine-sixscripts-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Building browser-based 3D applications requires coordinating engines, cameras, lights, materials, physics, and asset loading across a large API surface, and this Skill provides complete Babylon.js patterns and generators to implement those systems correctly. ## Core Features & Use Cases - Scene and Engine Setup: Initialize engines, scenes, cameras (Free, ArcRotate, Universal, Follow), and lighting systems with production-ready code patterns. - Materials, Meshes, and Model Loading: Create PBR and standard materials, built-in mesh shapes, and load GLTF/GLB models with the SceneLoader and AssetsManager. - Physics, Animation, and WebXR: Integrate Havok physics aggregates, keyframe and skeleton animations, particle systems, post-processing, and WebXR VR/AR experiences. - Code Generators: Use the included Python scripts to generate scene boilerplate and mesh creation code interactively or via CLI arguments. - Use Case: A developer building an interactive 3D product configurator can generate an arc-rotate camera scene, load a GLB model, apply PBR materials, and add shadow mapping without reading the full Babylon.js documentation. ## Quick Start Ask the AI to generate a Babylon.js scene with an arc-rotate camera, PBR materials, and Havok physics for a falling sphere demo.

Frequently Asked Questions about babylonjs-engine

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

FAQPage Schema
How do I set up a Babylon.js scene with camera and lighting?

Create an Engine bound to a canvas element, instantiate a Scene, then add a camera such as ArcRotateCamera and a HemisphericLight. Call engine.runRenderLoop with scene.render and handle window resize events to keep the viewport correct.

How to load GLTF or GLB models in Babylon.js?

Use SceneLoader.ImportMeshAsync with the model path and scene reference to load GLTF or GLB files asynchronously. For batch loading of multiple assets, use AssetsManager with mesh and texture tasks and an onFinish callback.

Babylon.js vs Three.js for web 3D development?

Babylon.js includes built-in game engine features like physics, GUI, WebXR helpers, and an inspector, while Three.js is a lighter rendering library requiring more third-party plugins. Babylon.js suits full game or immersive app development.

Does Babylon.js support physics simulations?

Yes, Babylon.js supports physics through the Havok physics engine via the @babylonjs/havok package. Initialize HavokPhysics, enable physics on the scene with a gravity vector, and attach PhysicsAggregate objects with shapes like sphere, box, or capsule to meshes.

Why is my Babylon.js scene rendering slowly?

Slow rendering usually comes from too many draw calls, so merge meshes sharing materials or use instances and thin instances for repeated geometry. Also freeze world matrices on static meshes, apply hardware scaling, and use the SceneOptimizer to degrade quality adaptively.

Can I use Babylon.js with React?

Yes, create the Engine and Scene inside a useEffect hook with a canvas ref, run the render loop, and dispose of the scene and engine in the cleanup function. This pattern integrates Babylon.js rendering into standard React component lifecycles.