第 21 号 商品写真
実在の 3D モデルの物撮り: 目覚まし時計(Poly Haven、CC0)、preset='product'
Poly Haven の CC0 の目覚まし時計を名前で取り寄せ、preset="product" で 4 枚。

本番の GPU で描いた本物の結果と、そのまま動く bpy スクリプト、設定、GPU 秒。スクリプトの URL を scene_url に渡せば同じものが出ます。本番の GPU で 20.4 GPU 秒、0.1 円/GPU 秒で 2 円。
写っているもの
白い文字盤のクロムの目覚まし時計を、スタジオの背景紙の上で軸のまわりから 4 枚。基本形でなく、スキャン品質の本物のモデルです。
シーンの組み方
asset_urls に「polyhaven:」を渡すと、サービスが CC0 のモデルを自分で取りに行きます。preset="product" がスタジオの照明を足してカメラを回し、orbit_elevation と orbit_distance で角度と切り取りを整えます。jr_assets.frame_camera() がモデルを画面に収めます。
自分用に変える
エージェントから asset_search で Poly Haven を探し、ID を asset_urls に入れて同じ呼び出しのまま。自分の商品なら、その glTF・FBX・USD を送ります。
2 円 でこの 1 枚。新しい鍵の無料のようこそクレジットなら、カード無しで約 49 回分。
この作例を自分の AI で描く
ChatGPT · Claude · Grok · Perplexity
JANCTION Render(MCP サーバー https://render.janction.jp/mcp)で、この作例を描いて: render_preview(scene_url="https://render.janction.jp/samples/ex21_product_clock.py", asset_urls=["polyhaven:alarm_clock_01"])。そのあと、私の題材に合わせて色・形・カメラを変える案を出して。仕上げの前に確認して。
リンクを押すと、下の文が入った状態でそのアプリが開きます(入らないときは写して貼ってください)。そのアプリに JANCTION Render をまだつないでいなければ、先にコネクタとして https://render.janction.jp/mcp を足してください。
Blender の警告
- orbit: an orbit camera circles the scene once over 4 frames (elevation 25 deg); the scene's own camera is not used
- environment preset 'studio' replaced the scene's world (HDRI lighting)
スクリプト(bpy、そのまま動く)
ex21_product_clock.py。シーン・カメラ・コマ範囲だけを組み、解像度・サンプル・ノイズ除去・GPU はサービスが決めます。
"""JANCTION Render examples 21 and 22: an alarm clock, a real 3D model from Poly Haven (CC0, "alarm_clock_01").
Reproduce: render_final(scene_url="https://render.janction.jp/samples/ex21_product_clock.py",
asset_urls=["polyhaven:alarm_clock_01"], preset="product",
orbit_elevation=25, orbit_distance=0.85) # 4 studio shots, 1440x1440
render_final(scene_url="https://render.janction.jp/samples/ex21_product_clock.py",
asset_urls=["polyhaven:alarm_clock_01"], preset="turntable",
orbit_elevation=25, orbit_distance=0.85) # 360-degree MP4
No files to upload: the service fetches the model by name. The model is CC0 (https://polyhaven.com/a/alarm_clock_01).
The preset lights the studio and orbits the camera (25 degrees above, a little closer than the default); jr_assets.frame_camera() fits the model in the frame.
"""
import bpy
import jr_assets # provided by the service in front of every scene script
for ob in list(bpy.data.objects):
bpy.data.objects.remove(ob, do_unlink=True)
jr_assets.import_model("alarm_clock_01") # about 23 x 17 x 17 cm, textures included
# the glTF's glass uses the (JPEG, no alpha) colour texture, so it imports opaque and hides the dial: make it clear glass
for m in bpy.data.materials:
if "glass" in m.name.lower() and m.use_nodes:
g = next(n for n in m.node_tree.nodes if n.type == "BSDF_PRINCIPLED")
for link in list(g.inputs["Base Color"].links) + list(g.inputs["Alpha"].links):
m.node_tree.links.remove(link)
g.inputs["Base Color"].default_value = (1.0, 1.0, 1.0, 1.0)
g.inputs["Roughness"].default_value = 0.02
g.inputs["Alpha"].default_value = 0.12
# a soft light-grey floor that catches the shadow (frame_camera ignores floors)
bpy.ops.mesh.primitive_plane_add(size=60, location=(0.0, 0.0, 0.0)) # wide enough that its edge stays out of frame
floor = bpy.context.active_object
floor.name = "Floor"
mat = bpy.data.materials.new("Floor")
mat.use_nodes = True
bsdf = next(n for n in mat.node_tree.nodes if n.type == "BSDF_PRINCIPLED")
bsdf.inputs["Base Color"].default_value = (0.80, 0.80, 0.82, 1.0)
bsdf.inputs["Roughness"].default_value = 0.65
floor.data.materials.append(mat)
cam = jr_assets.frame_camera(margin=1.25) # adds the camera and points it at the model
bpy.context.scene.camera = cam



