Evo threejs to obj

From OpenLAIR/OpenSkill · View interactive version

Evo threejs to obj is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. Convert Three.js scene graphs to Wavefront OBJ format suitable for Blender (Z-up coordinate system). Handles InstancedMesh, nested hierarchies, coordinate transforms, and headless Node.js execution.

How to use this skill

Skill file

evo-threejs-to-obj

Purpose

Convert Three.js scene graphs to Wavefront OBJ format suitable for Blender (Z-up coordinate system).

Key Domain Knowledge

Coordinate System Conversion

Pipeline (per geometry)

  1. Clone source BufferGeometry
  2. Apply node's world matrix (or composed world*instance matrix for InstancedMesh)
  3. Apply -90° X rotation for Y-up to Z-up conversion
  4. Collect transformed geometry

InstancedMesh Handling

Non-Uniform/Negative Scales

Geometry Preparation for Merging

OBJ Export Strategy

World Matrix Update

Scene Module Loading

Usage

IMPORTANT: The script must be run from a directory that has three in its

node_modules (e.g., /root/ if that's where package.json and node_modules are).

The script uses ES module imports so the project needs "type": "module" in package.json.

# Copy script to project root and run:
cp /app/environment/skills/evo-threejs-to-obj/scripts/convert.mjs /root/convert.mjs
cd /root && node convert.mjs /root/data/object.js /root/output/object.obj

Files

Expected Output

For a typical scene:

Troubleshooting

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.