Skip to content
Back to skills

Studio Product Render

ASecurity

Script studio product shots in Blender with bpy: three-point or HDRI lighting, camera framing, PBR materials, Cycles settings, turntable animation and transparent PNG export. Triggers: "render my product", "Blender product shot", "turntable render", "packshot on transparent background".

  • 25 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentspythongonode

Works with

  • cursor
  • cli

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add tinh2/skills-hub-registry --skill studio-product-render --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Studio Product Render?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Studio Product Render
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tinh2-studio-product-render/badge)](https://www.skillsdirectory.com/skills/tinh2-studio-product-render)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: studio-product-render
description: Script studio product shots in Blender with bpy: three-point or HDRI lighting, camera framing, PBR materials, Cycles settings, turntable animation and transparent PNG export. Triggers: "render my product", "Blender product shot", "turntable render", "packshot on transparent background".
version: "1.0.0"
category: build
platforms: [CLAUDE_CODE, CURSOR, CODEX_CLI]
---

# Product render in Blender

Clean product renders come from three things: soft controlled light, a calm camera, and believable materials. Script it so every shot in a set matches.

## Inputs to agree on

- Model source and units (glTF, FBX, OBJ, STEP converted to mesh). Real-world scale matters for depth of field and light falloff.
- Shot list: hero 3/4, front, side, detail, top, turntable.
- Output: resolution (2000x2000 for ecommerce, 3840x2160 for hero), transparent PNG or a backdrop, color space.
- Brand colors for materials (with sRGB hex and finish: matte, satin, gloss, metal).
- Render budget: GPU available, minutes per frame acceptable.

## Toolchain

- Blender 4.x run headless: `blender -b -P render.py -- args`.
- Cycles for final quality; EEVEE (Next) for fast previews and turntable drafts.
- HDRIs: Poly Haven studio HDRIs (CC0), for example a softbox studio map.
- Alternatives: KeyShot (fast, product-focused, paid), Three.js or model-viewer for real-time (see a glTF web workflow).

## Workflow

### 1. Scene script

```python
# render.py  -- run: blender -b -P render.py -- model.glb out/
import bpy, sys, math, os
from mathutils import Vector

argv = sys.argv[sys.argv.index("--") + 1:]
model_path, out_dir = argv[0], argv[1]
os.makedirs(out_dir, exist_ok=True)

bpy.ops.wm.read_factory_settings(use_empty=True)
scene = bpy.context.scene

# import
ext = os.path.splitext(model_path)[1].lower()
if ext in (".glb", ".gltf"):
    bpy.ops.import_scene.gltf(filepath=model_path)
elif ext == ".fbx":
    bpy.ops.import_scene.fbx(filepath=model_path)
else:
    bpy.ops.wm.obj_import(filepath=model_path)

meshes = [o for o in scene.objects if o.type == "MESH"]
# parent under an empty so we can center and rotate as one
root = bpy.data.objects.new("Product", None)
scene.collection.objects.link(root)
for o in scene.objects:
    if o.parent is None and o is not root:
        o.parent = root

# bounds
pts = [o.matrix_world @ Vector(c) for o in meshes for c in o.bound_box]
mn = Vector((min(p.x for p in pts), min(p.y for p in pts), min(p.z for p in pts)))
mx = Vector((max(p.x for p in pts), max(p.y for p in pts), max(p.z for p in pts)))
size = (mx - mn).length
center = (mn + mx) / 2
root.location -= Vector((center.x, center.y, mn.z))  # sit on the floor at origin
```

### 2. Lighting

Three-point area lights scaled to the product:

```python
def area(name, loc, energy, size_m, color=(1, 1, 1)):
    d = bpy.data.lights.new(name, "AREA")
    d.energy, d.size, d.color = energy, size_m, color
    o = bpy.data.objects.new(name, d)
    scene.collection.objects.link(o)
    o.location = loc
    tc = o.constraints.new("TRACK_TO")
    tc.target, tc.track_axis, tc.up_axis = root, "TRACK_NEGATIVE_Z", "UP_Y"
    return o

s = size
area("Key",  ( 1.6*s, -1.4*s, 1.4*s), 400 * s * s, 1.2*s)
area("Fill", (-1.8*s, -1.0*s, 0.8*s), 120 * s * s, 1.6*s)
area("Rim",  ( 0.0,    1.8*s, 1.6*s), 300 * s * s, 0.8*s)
```

Key to fill ratio of about 3:1 gives shape without harsh shadows. Large light size relative to the product gives soft highlights. For reflective products, the reflections are the design: use long strip lights and check where they land.

HDRI alternative (or combined at low strength for reflections):

```python
world = bpy.data.worlds.new("World"); scene.world = world
world.use_nodes = True
nt = world.node_tree
env = nt.nodes.new("ShaderNodeTexEnvironment")
env.image = bpy.data.images.load(os.path.abspath("studio_small_08_2k.hdr"))
nt.links.new(env.outputs["Color"], nt.nodes["Background"].inputs["Color"])
nt.nodes["Background"].inputs["Strength"].default_value = 0.6
```

### 3. Camera

```python
cam_data = bpy.data.cameras.new("Cam")
cam_data.lens = 85               # 70 to 100 mm reduces perspective distortion
cam_data.dof.use_dof = True
cam_data.dof.aperture_fstop = 8  # keep the whole product sharp
cam = bpy.data.objects.new("Cam", cam_data)
scene.collection.objects.link(cam)
scene.camera = cam
dist = size * 2.6
cam.location = (dist * math.sin(math.radians(35)), -dist * math.cos(math.radians(35)), size * 0.55)
tc = cam.constraints.new("TRACK_TO"); tc.target = root
tc.track_axis, tc.up_axis = "TRACK_NEGATIVE_Z", "UP_Y"
cam_data.dof.focus_object = root
```

Frame with 8 to 12 percent margin on all sides. Adjust `dist` until the product fills about 80 percent of the shorter side.

### 4. Materials

Use Principled BSDF values: plastic roughness 0.3 to 0.5, brushed metal metallic 1.0 roughness 0.25 to 0.35 with anisotropy, glass transmission 1.0 roughness 0 IOR 1.45 to 1.52. Add a small bevel (Bevel modifier 0.5 to 1 mm, 3 segments) to hard CAD edges; perfectly sharp edges look fake because they catch no highlight.

### 5. Shadow catcher and transparency

```python
bpy.ops.mesh.primitive_plane_add(size=size * 20)
floor = bpy.context.active_object
floor.is_shadow_catcher = True
scene.render.film_transparent = True
```

### 6. Render settings

```python
scene.render.engine = "CYCLES"
scene.cycles.device = "GPU"          # enable the device in Preferences > System for headless use
scene.cycles.samples = 256
scene.cycles.use_adaptive_sampling = True
scene.cycles.adaptive_threshold = 0.01
scene.cycles.use_denoising = True
scene.cycles.max_bounces = 12
scene.cycles.transmission_bounces = 12
scene.view_settings.view_transform = "AgX"   # Filmic on Blender 3.x
scene.view_settings.look = "AgX - Base Contrast"
scene.render.resolution_x = scene.render.resolution_y = 2000
scene.render.image_settings.file_format = "PNG"
scene.render.image_settings.color_mode = "RGBA"
scene.render.image_settings.color_depth = "16"
scene.render.filepath = os.path.join(out_dir, "hero.png")
bpy.ops.render.render(write_still=True)
```

For GPU in headless runs, set `bpy.context.preferences.addons["cycles"].preferences.compute_device_type = "METAL"` (or "OPTIX"/"CUDA"/"HIP"), call `get_devices()` and enable each device.

### 7. Turntable

```python
scene.frame_start, scene.frame_end = 1, 120   # 4 s at 30 fps
scene.render.fps = 30
root.rotation_euler = (0, 0, 0); root.keyframe_insert("rotation_euler", frame=1)
root.rotation_euler = (0, 0, math.radians(360)); root.keyframe_insert("rotation_euler", frame=121)
for fc in root.animation_data.action.fcurves:
    for kp in fc.keyframe_points:
        kp.interpolation = "LINEAR"
scene.render.filepath = os.path.join(out_dir, "turn_")
bpy.ops.render.render(animation=True)
```

Keying frame 121 with range 1 to 120 makes the loop seamless. Encode: `ffmpeg -framerate 30 -i out/turn_%04d.png -c:v libx264 -crf 16 -pix_fmt yuv420p turntable.mp4`. For alpha: `-c:v prores_ks -profile:v 4444 -pix_fmt yuva444p10le turntable.mov` or VP9 WebM with `yuva420p`. On a newer Blender with slotted actions, fcurves move under action layers; setting `bpy.context.preferences.edit.keyframe_new_interpolation_type = "LINEAR"` before keying avoids touching them.

## Variants

- Lifestyle backdrop: curved cyclorama (sweep) plane with a soft gradient instead of a shadow catcher.
- Exploded view: animate parts along their local axes with ease-in-out, 0.6 to 1 s per step.
- Color variants: loop over a list of material base colors and render each with the same camera.
- Fast drafts: EEVEE at 64 samples for layout approval before a Cycles final.

## Quality checks

- Alpha edges clean: composite the PNG over black and white; no gray fringe.
- No fireflies or noise in dark areas at 100 percent zoom; raise samples or clamp indirect (`scene.cycles.sample_clamp_indirect = 10`).
- Highlights not clipped: color picker on brightest area under 1.0 after view transform except intentional speculars.
- Brand color matches within a small delta E when sampled on a diffuse-lit face (expect some shift from lighting; compare to swatch rendered flat).
- Turntable first and last frame not duplicated (no stutter at loop).
- Render time per frame recorded for budgeting.

## Pitfalls and fixes

- Product looks tiny or lights blown out: import units wrong. Apply scale so the model is real size in meters.
- Black glass: increase transmission bounces; avoid single-sided planes for glass.
- Shading artifacts on CAD meshes: use Shade Auto Smooth plus weighted normals, or remesh.
- Hex colors look washed: Blender color fields are linear; enter hex in the picker (it converts) rather than raw RGB values.
- Shadow catcher shows as gray box: `film_transparent` must be on and output RGBA.

## Deliverables

- [ ] Hero and angle PNGs with alpha at agreed resolution
- [ ] Turntable MP4 plus alpha MOV or WebM if requested
- [ ] `render.py` and the .blend file for re-renders
- [ ] HDRI and texture credits or licenses
- [ ] Note of render settings and time per frame

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.