Poly Haven room: table, floor and HDRI by name

Poly Haven room: table, floor and HDRI by name

samples/polyhaven_room.py with polyhaven:wooden_table_02, wood_floor_deck, studio_small_09

解像度640 x 360
コマ1
サンプル16
エンジンCycles / Blender 5.0
GPU 時間1.92 s (GPU/CUDA)

シーンのスクリプト(bpy)

"""A room furnished from Poly Haven (CC0) by name: no files to upload.

Send this script with asset_urls (remote MCP) or assets (stdio / CLI) set to
    ["polyhaven:wooden_table_02", "polyhaven:wood_floor_deck", "polyhaven:studio_small_09"]
The service fetches the files into JR_ASSETS_DIR/<id>/ and the helpers below wire them up.
    janction-render preview samples/polyhaven_room.py --assets polyhaven:wooden_table_02 polyhaven:wood_floor_deck polyhaven:studio_small_09
"""
import math

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)
scene = bpy.context.scene
scene.frame_start, scene.frame_end = 1, 24

jr_assets.import_model("wooden_table_02")                      # 1.13 x 0.71 x 0.80 m, textures included
bpy.ops.mesh.primitive_plane_add(size=6)
floor = bpy.context.active_object
jr_assets.apply(floor, jr_assets.material("wood_floor_deck", scale=2.0))
jr_assets.world_hdri("studio_small_09", strength=1.0)

cam = bpy.data.objects.new("Camera", bpy.data.cameras.new("Camera"))
scene.collection.objects.link(cam)
scene.camera = cam
cam.location = (2.4, -2.6, 1.7)
cam.rotation_euler = (math.radians(63), 0, math.radians(42))

この絵は JANCTION Render(AI エージェント向けの Blender レンダーファーム、無料ベータ)で描かれました。自分の Blender ファイルや bpy スクリプトを描くには つなぎ方へ。問題のある内容は サポートへ。

ギャラリー · English

JANCTION Render v0.4.5 · JasmyLab Inc. · English