SuperAPI AI 工具集

retro-8bit-style

设计与创作

查看项目

更新于 10-31 12:23

技能介绍

用途:该技能面向 Blender 的 AI 插件,提供一套 8-bit NES 复古视觉风格的处理流程,用于把场景或资产渲染成接近 NES 的粗像素、强对比、低色数画面。资料明确其适用对象是 NES 风格,不适用于 SNES(另有 retro-16bit-style)或通用像素风(pixel-art-style)。

主要能力与限制:

  • 约束:颜色数极低;角色高对比;道具简单;避免渐变,除非使用抖动(dither)。
  • 规格:目标为类似 NES 的 256x240 内部渲染;每个 sprite 3 色加透明,屏幕上约 25 色;2 个硬色带;8 px tiles;无渐变。

处理流程(Recipe):

  1. 相机:使用 iso_camera.py,projection 设为 "military",pixel_tile 为 8,形成扁平 45 度视角,读起来像俯视 sprite。
  2. 着色:使用 toon_material.py,bands 设为 2,rim 为 0,outline 为 0,并使用饱和的基础色。
  3. 渲染预设:使用 render_preset.py 的 stylized_flat,再调用 ps1_look.py,snap 为 0,resolution 为 [256, 240],flat 为 True,fog 为 False。
  4. 调色板限制:使用 comp_grade.py,preset 为 "clean",posterize 为 4(Posterize 节点,每通道 4 级,最多 64 色);每个物体保持 3-4 个平涂材质色。
  5. 关闭抗锯齿:scene.render.filter_size = 0,scene.eevee.taa_render_samples = 1(stylized_flat 预设默认使用 32 采样)。

使用方式:资料提供了 Python 代码示例,通过 runpy.run_path 依次执行 iso_camera.py、toon_material.py、render_preset.py、ps1_look.py、comp_grade.py,并设置 filter_size 与 taa_render_samples;需将 skills 变量指向该技能所在插件的 skills/ 目录,target 指定为要处理的对象(示例为 "SM_Asset")。代码内容未作改动。

适用场景:需要 NES 复古 8-bit 观感的 Blender 资产或场景渲染。

限制:资料未提供该技能的其他平台支持、收费、价格或具体效果指标;不适用于 SNES 16-bit 或一般像素风。