Skip to content

Comprehensive Babylon.js 3D engine guide covering scenes, cameras, lighting, meshes, and materials for real-time web rendering.

CCM score
42 of 100
skills.sh installs
3K
GitHub stars
1.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers engine and scene setup in both plain JavaScript and ES6/TypeScript, plus the render loop and resize handling
  • Includes camera types (FreeCamera, ArcRotateCamera, UniversalCamera), light types, built-in mesh builders, and PBR-style material properties
  • Shows shadow generation with ShadowGenerator and per-mesh light inclusion or exclusion for performance
  • Designed for developers building browser-based games, interactive visualizations, or 3D web applications as an alternative to Three.js

Install

$ npx -y skills add freshtechbro/claudedesignskills --skill babylonjs-engine -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Babylon.js Engine Skill

Related Skills

  • threejs-webgl: Alternative 3D engine
  • react-three-fiber: React integration for 3D
  • gsap-scrolltrigger: Animation library
  • motion-framer: UI animations

Core Concepts

1. Engine and Scene Initialization

Basic Setup

// Get canvas element
const canvas = document.getElementById('renderCanvas');

// Create engine
const engine = new BABYLON.Engine(canvas, true, {
  preserveDrawingBuffer: true,
  stencil: true
});

// Create scene
const scene = new BABYLON.Scene(engine);

// Render loop
engine.runRenderLoop(() => {
  scene.render();
});

// Handle resize
window.addEventListener('resize', () => {
  engine.resize();
});

ES6/TypeScript Setup

import { Engine } from '@babylonjs/core/Engines/engine';
import { Scene } from '@babylonjs/core/scene';
import { FreeCamera } from '@babylonjs/core/Cameras/freeCamera';
import { Vector3 } from '@babylonjs/core/Maths/math.vector';
import { HemisphericLight } from '@babylonjs/core/Lights/hemisphericLight';
import { CreateSphere } from '@babylonjs/core/Meshes/Builders/sphereBuilder';

Details

Repository
github.com/freshtechbro/claudedesignskills
Categories
3D, CAD & Modeling, Frontend & UI Code, Game Development
First seen
Jun 3, 2026

More from freshtechbro/claudedesignskills

All 22

Similar to Babylonjs Engine

More 3D, CAD & Modeling