skills/ar-vr/3d-modeling/SKILL.md
Skill for creating and editing 3D models using software like Blender for AR/VR applications.
npx skillsauth add alphaonedev/openclaw-graph 3d-modelingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides tools for creating, editing, and optimizing 3D models using Blender, specifically tailored for AR/VR applications. It focuses on generating assets like meshes and textures that integrate seamlessly into virtual environments.
Use this skill when developing AR/VR prototypes that require custom 3D models, such as designing interactive objects for VR simulations or overlaying digital assets in AR scenes. Apply it in workflows involving asset creation, modification, or export for platforms like Unity or Oculus.
bpy.ops.mesh.primitive_cube_add().bpy.data.materials.new() to add shaders.bpy.ops.export_scene.gltf().Follow these patterns to leverage the skill effectively. Always run Blender in a compatible environment with Python 3.7+ installed.
Basic Model Creation: Start by launching Blender from the command line and scripting a simple object. Use this for quick AR prototypes.
import bpy
bpy.ops.mesh.primitive_cube_add(size=2, location=(0,0,0))
bpy.ops.export_scene.gltf(filepath="cube.gltf")
Model Editing for VR: Import an existing model, apply modifications, and optimize for VR performance.
import bpy
bpy.ops.import_scene.obj(filepath="model.obj")
bpy.ops.object.modifier_add(type='DECIMATE')
bpy.ops.export_scene.gltf(filepath="optimized_model.gltf", export_format='GLTF_SEPARATE')
For complex tasks, wrap these in scripts and run via Blender's CLI to automate AR/VR asset pipelines.
Use Blender's CLI and Python API for core operations. Specify exact flags for efficiency.
CLI Commands: Run scripts in background mode.
blender --background input.blend --python script.py --render-output output.png: Loads a file, runs a script, and renders an image for AR previews.blender -b file.blend -P script.py -F PNG -o //render_: Executes a script on a blend file and outputs renders; use -F for format like PNG for VR thumbnails.Python API Snippets: Access via bpy module in Blender scripts.
mat = bpy.data.materials.new("AR_Material")
mat.diffuse_color = (1, 0, 0, 1) # Red color for AR visibility
obj = bpy.context.active_object
obj.scale = (1.5, 1.5, 1.5) # Scale object for VR fitting
Config formats: Use JSON-like structures in Blender files (.blend) for custom properties, e.g., add via bpy.types.Scene.my_prop = "value". For exports, specify GLTF options in scripts, like export_extras=True for metadata.
Integrate this skill with AR/VR frameworks by exporting models in compatible formats. For external services (e.g., cloud rendering), use environment variables for authentication, such as $BLENDER_API_KEY if accessing paid APIs, though Blender itself is local. Pattern: Set export os.environ['BLENDER_API_KEY'] = 'your_key' in scripts before API calls. Ensure dependencies like Python packages (e.g., bpy) are installed via pip install bpy if using external editors. For AR/VR platforms, import GLTF files directly into Unity or Unreal, matching coordinate systems (e.g., Z-up for Blender).
Anticipate and handle errors in scripts to maintain AR/VR workflow reliability. Check for file existence before imports: Use if not bpy.data.filepath: raise ValueError("File not found"). For API failures, like failed exports, catch exceptions:
try:
bpy.ops.export_scene.gltf(filepath="output.gltf")
except RuntimeError as e:
print(f"Export failed: {e}") # Log and retry or fallback
Common issues: Invalid paths (use absolute paths), memory errors on large models (optimize with decimate modifier first), or version mismatches (ensure Blender 2.8+). Always test scripts in a non-destructive environment.
tools
Root web development: project structure, tooling selection, deployment decisions
development
WebAssembly: Rust/Go/C to WASM, wasm-bindgen, Emscripten, WASM Component Model
development
Vue 3: Composition API script setup, Pinia, Vue Router 4, SFCs, Vite, Nuxt 3
tools
Tailwind CSS 4: utility classes, config, JIT, arbitrary values, darkMode, plugins, shadcn/ui