pixijs-scene-mesh

Construct PixiJS v8 MeshGeometry meshes with positions, UVs, indices, and topology.

16|8|Updated May 20, 2020
One-click install
npx skills add https://github.com/encounterplus/web-client --skill pixijs-scene-mesh-encounterplus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pixijs-scene-mesh
Source: https://github.com/encounterplus/web-client/tree/main/.agents/skills/pixijs-scene-mesh
Command: npx skills add https://github.com/encounterplus/web-client --skill pixijs-scene-mesh-encounterplus

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you render textured, deformable geometry in PixiJS v8 when Sprites and simple primitives can’t express your shape or animation needs.

Core Features & Use Cases

  • Build custom geometry with MeshGeometry + Mesh: Provide positions, UVs, indices, and topology for full control or custom shader workflows.
  • Use purpose-built mesh variants for common deformations: Pick MeshSimple for animated vertices, MeshPlane for grid-based distortion, MeshRope for textured ribbons along points, and PerspectiveMesh for 2.5D corner warping.
  • Avoid common v8 pitfalls: Use options-object constructors, correct property names (positions vs vertices), and treat Mesh as a leaf node that must be grouped in a Container.

Example: Create a perspective-tilted UI card that smoothly warps as corners move each frame, using only MeshGeometry-compatible primitives and the correct setCorners corner order.

Quick Start

Use pixijs-scene-mesh to create a MeshGeometry-backed Mesh with a loaded texture and triangle-list topology, then add it to app.stage for immediate rendering.

Frequently Asked Questions about pixijs-scene-mesh

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

FAQPage Schema
How do I render and deform custom geometry in PixiJS v8?

Construct a MeshGeometry with correct positions, UVs, indices, and topology, then wrap it in a Mesh or mesh subclass for immediate rendering on the stage.

What is the best way to create a textured rope along a path in PixiJS?

Use the MeshRope variant to render textured ribbons along a sequence of points, which handles the underlying vertex deformation and UV mapping required for path-following geometry.

How do I achieve a 2.5D perspective corner warp for a UI card in PixiJS?

Use the PerspectiveMesh variant to achieve 2.5D perspective corner warping, allowing a textured quad to smoothly tilt and warp as you update its corners each frame.

Does PixiJS Mesh support per-frame vertex animation for custom shaders?

Yes, Mesh supports per-frame vertex animation by using MeshSimple for animated vertices and updating the GPU buffers when mutating the geometry for custom shader workflows.

Why does my custom PixiJS mesh not render after updating its vertices?

PixiJS custom meshes fail to render if you do not update GPU buffers when mutating geometry, use incorrect property names like vertices instead of positions, or treat Mesh as a non-leaf node.

When should I use MeshPlane instead of a standard Mesh in PixiJS?

Use MeshPlane instead of a standard Mesh when you need grid-based distortion and subdivided planar distortion, as it handles the subdivided geometry required for smooth surface warping.