Threejs to obj

From XuShuwenn/RedAct · View interactive version

Threejs to obj is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Convert Three.js 3D object to OBJ format with Blender Z-up coordinate system (-90° X rotation).

How to use this skill

Skill file

Three.js to OBJ Conversion

When to Use

Input

Inspect the Source First

Inspect the Source First

Output

Execution Constraints

Execution Constraints

Key Requirements

  1. Keep all original 3D positions
  2. Apply -90 degree X rotation (Blender Z-up space)
  3. Export in OBJ format
  1. Apply the coordinate conversion exactly once
  2. Validate transform preservation before claiming success, especially for scene-graph rewrites
  3. Validate the exported geometry semantically, not just by file existence or line counts

Coordinate Transform

Blender Z-up: Apply rotation matrix

x' = x
y' = z
z' = -y  (or similar based on rotation)

Important: choose one transform path only:

Do not do both. Wrong: rotating geometry and also setting a root/object rotation of -90° around X. Apply the Blender Z-up conversion in one place only.

OBJ Format

v x y z           # vertices
vn nx ny nz       # normals
f v1/vt1/vn1 ...  # faces

Validation

Validation

Before declaring success, verify task-critical properties, not just file existence:

Tips

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.