SuperAPI AI 工具集

genre-rpg

设计与创作

查看项目

更新于 10-31 12:25

技能介绍

用途

该技能面向 RPG 类型场景的搭建,适用于 RPG 城镇、任务枢纽、区域身份塑造,以及需要让稀有度一眼可读的物品。它强调区域身份、任务枢纽、战利品稀有度视觉语言和职业可辨识的装备。

主要能力

技能提供一套可组合的配方流程:

  • 区域身份世界:采用战利品稀有度颜色语言(灰、绿、蓝、紫、橙),英雄比例为 1.8 米,使用 50mm 镜头的温暖 3/4 相机。
  • 稀有度材质:通过 pbr_material.py 按层级逐次调用创建,例如 MAT_Loot_Epic 使用 base_color [0.4, 0.1, 0.8]、emission_strength 1.5。
  • 场景道具散布:通过 scatter_props.py 在任务枢纽周围散布区域道具(count 10,clusters 3)。
  • 打光:通过 light_rig.py 使用 golden_hour 预设。
  • 英雄/枢纽相机:通过 camera_rig.py 设置 lens_mm 50、azimuth_deg 30、elevation_deg 25。
  • 调色:通过 comp_grade.py 使用 cinematic 预设完成。

使用方式

技能以 Python 脚本形式调用,通过 runpy.run_path 依次执行各子脚本,并传入 ARGS 参数。示例代码:

import runpy
skills = "<skills_dir>"  # parent folder of this skill (the plugin's skills/ directory)
target = "SM_Asset"      # object to style / dress
r = {}
r["loot"] = runpy.run_path(f"{skills}/materials/scripts/pbr_material.py", init_globals={"ARGS": {"name": "MAT_Loot_Epic", "base_color": [0.4, 0.1, 0.8], "emission_color": [0.5, 0.2, 1.0], "emission_strength": 1.5, "metallic": 0.8, "roughness": 0.3, "objects": [target]}})["result"]
r["props"] = runpy.run_path(f"{skills}/set-dressing/scripts/scatter_props.py", init_globals={"ARGS": {"target": target, "count": 10, "clusters": 3}})["result"]
r["light"] = runpy.run_path(f"{skills}/lighting/scripts/light_rig.py", init_globals={"ARGS": {"preset": "golden_hour", "target": target}})["result"]
r["cam"] = runpy.run_path(f"{skills}/camera-cinematography/scripts/camera_rig.py", init_globals={"ARGS": {"name": "CAM_Hub", "target": target, "lens_mm": 50, "azimuth_deg": 30, "elevation_deg": 25}})["result"]
r["grade"] = runpy.run_path(f"{skills}/compositing/scripts/comp_grade.py", init_globals={"ARGS": {"preset": "cinematic"}})["result"]
result = r

参考数值

项目 数值
英雄高度 1.8 m
门 1 x 2.2 m
任务枢纽半径 15-30 m
宝箱 1 x 0.6 x 0.6 m
战利品拾取发光 emission 1-3

适用场景

适用于需要在 Blender 中快速搭建 RPG 风格场景、统一区域视觉身份、建立战利品稀有度颜色体系,以及布置任务枢纽与道具散布的场合。

限制

资料未提供该技能的收费、价格、平台兼容性、性能表现或具体效果保证等信息,暂未提供。