pixijs-scene-core-concepts

Organize PixiJS v8 scene graph concepts into containers, leaves, and render order.

302|15|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-scene-core-concepts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pixijs-scene-core-concepts
Source: https://github.com/pixijs/pixijs-skills/tree/main/skills/pixijs-scene-core-concepts
Command: npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-scene-core-concepts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reasoning about the PixiJS v8 scene graph can be challenging due to the complex relationships between containers, leaves, transforms, and render order. This skill provides a shared mental model and reference points to reduce confusion and bugs when designing and debugging scenes.

Core Features & Use Cases

  • Clarifies container vs leaf roles and when to wrap leaves in containers.
  • Explains local vs world coordinates, transform matrices, and coordinate conversions.
  • Documents render order, z-index, and render layers such as RenderLayer and isRenderGroup.
  • Links constructor options and references to support consistent scene design and migration tasks.

Quick Start

Review the scene-graph concepts described here before implementing a PixiJS v8 app to establish a robust mental model of containers, leaves, transforms, and render order.

Frequently Asked Questions about pixijs-scene-core-concepts

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

FAQPage Schema
How does the PixiJS scene graph render order work for containers and leaves?

PixiJS scene graph render order processes containers and leaves sequentially, prioritizing child array indices and z-index settings to determine visual stacking. RenderLayer and isRenderGroup options further modify this flow for layer-based rendering.

What is the difference between local and world coordinates in PixiJS transforms?

PixiJS transforms use local coordinates for relative child positioning and world coordinates for absolute scene placement. Transform matrices convert between these spaces, ensuring correct object alignment during hierarchical container nesting.

When do I need to wrap PixiJS leaves in containers?

Wrap PixiJS leaves in containers when you need to group multiple objects for shared transforms, masking, or render order control. Leaves are terminal renderable nodes, so containers provide the structural hierarchy required for scene construction.

How do I use masking in a PixiJS v8 scene graph?

Masking in the PixiJS v8 scene graph applies a visual cutout to containers or leaves using another object's shape. It integrates with the transform hierarchy, requiring correct local and world coordinate alignment to function reliably.

Does PixiJS support render layers and render groups for scene construction?

PixiJS supports render layers through RenderLayer and the isRenderGroup constructor option, allowing you to decouple visual stacking from the logical scene graph hierarchy. This ensures reliable layer-based rendering across complex scenes.

Why are my PixiJS containers not displaying in the correct order?

Incorrect PixiJS container display order often stems from misunderstanding scene graph render flow, where child array sequence and z-index dictate stacking. Reviewing constructor options and render layer assignments resolves these placement bugs.