← 返回列表
⚠ 装前注意
PBRRender 🎨
基本兼容但装前注意:未发布到 npm registry,仅可从源码安装 · 最近上游提交 2026/9/4 · 已提供中文文档
DeepSeek Harness 的 PBR 3D 模型预览插件——带纹理的 GLB/GLTF 游戏美术、材质通道检查器、轨道控制。pbr3d fence + pbr_render 工具。
综合分
32.2
GitHub 分
32.2
用户评分
—
★ Stars
5
周下载量
—
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add dhb861832993-star/pbr-render未发布到 npm registry,仅可从源码安装,改用 GitHub 源安装
数据截至 2026/9/18(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
安装兼容性检查⚠ 装前注意
以下结论由程序自动检查 npm 包、engines 声明与入口文件得出,未做人工实机验证——能装不等于用着没问题。
✗npm 包pbr-render(未发布到 npm,仅可源码安装)
✓Node 引擎未声明 engines.node
✓dsh CLI 依赖未声明 dsh 版本约束
✓入口文件main/exports/bin 已声明
未发布到 npm registry,仅可从源码安装
验证方式:npm registry 存在性 + package.json 静态校验 · 最后验证 2026/9/18 21:08:09
用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动
README
PBRRender 🎨
PBR(基于物理)3D 模型预览插件 for DeepSeek Harness
A Physically-Based Rendering 3D model preview plugin for DeepSeek Harness
渲染 GLB/GLTF 游戏美术资源,带贴图纹理、环境光照、轨道控制、材质通道检查,直接在模型回答里交互预览。
Render GLB/GLTF game-art assets inside chat with PBR textures, environment lighting, orbit controls, and material-channel inspection — fully interactive.
🔌 生态 / Ecosystem:仓库已挂 #dsh · #dsh-plugin · #pbr · #gltf topic,欢迎社区收录。
The repo carries the #dsh · #dsh-plugin · #pbr · #gltf topics — community welcome.
🖼️ 效果展示 / Showcase
同一模型的材质通道检查(点击模式栏实时切换,以下为各模式渲染截图)。
Material-channel inspection of the same model (switch live via the mode bar; screenshots of each mode below).
| PBR(完整物理渲染 / Full PBR) | 基础色 / Base Color | 法线 / Normal |
|---|---|---|
| pbr | basecolor | normal |
| 粗糙度(灰度)/ Roughness | 金属度(灰度)/ Metallic | AO(灰度)/ Ambient Occlusion |
|---|---|---|
| roughness | metallic | ao |
| 自发光 / Emissive | 线框 / Wireframe |
|---|---|
| emissive | wireframe |
标量通道(粗糙度/金属度/AO)按 PBR 规范以灰度显示——正是游戏引擎(Unity/UE)读取的原始贴图通道数据。
Scalar channels (roughness/metallic/AO) are shown in grayscale per PBR convention — the raw texture-channel data game engines (Unity/UE) actually read.
✨ 特性 / Features
PBR 渲染 / PBR Rendering
- 金属/粗糙度/法线/自发光/AO 贴图自动加载(GLB 内嵌或 GLTF 兄弟文件)
- Metalness / roughness / normal / emissive / AO maps load automatically (embedded in GLB or as GLTF sibling files)
材质通道检查 / Material-Channel Inspection
- viewer 顶部模式栏一键切换 —— PBR / 基础色 / 法线 / 粗糙度 / 金属度 / AO / 自发光 / 线框
- One-click mode bar at the top of the viewer — PBR / base color / normal / roughness / metallic / AO / emissive / wireframe
真实 HDR 环境光 / Real HDR Environment Lighting
- 内置 5 种 CC0 HDR 环境图(Poly Haven 1K)—— studio 棚拍 / sunset 黄昏 / outdoor 户外 / sunrise 日出 / night 夜晚,env 字段切换,envBackground 可显示为背景;未指定时回退程序化 RoomEnvironment。viewer 顶部有"环境"切换栏,预览时可直接点击换环境
- 5 built-in CC0 HDR environments (Poly Haven 1K) — studio / sunset / outdoor / sunrise / night, switched via the env field, or shown as the background with envBackground; falls back to a procedural RoomEnvironment when unset. An on-viewer "environment" bar lets you swap environments live
交互 / Interaction
- 拖拽旋转、滚轮缩放、自动旋转、曝光调节、一键全屏(右上角 ⛶ 按钮,Fullscreen API + 移动端覆盖层降级)
- Orbit by dragging, zoom with the wheel, auto-rotate, exposure control, and one-click fullscreen (⛶ button, Fullscreen API with mobile overlay fallback)
主动触发 / Active Triggering
- 模型发现 3D 模型文件(API 生成/下载/工作区出现)时自动调用 pbr_render 工具并渲染预览,无需用户提示
- Automatically calls the pbr_render tool and renders a preview when a 3D model file appears (API-generated / downloaded / dropped into the workspace) — no user prompt needed
安全 / Security
- 文件服务工作区限定 + 扩展名白名单 + 512 MiB 上限
- 工作区范围的文件服务 + 扩展名白名单 + 512 MiB 上限
安装 / 安装
从 GitHub 仓库安装 / 从 GitHub 仓库安装
dsh plugin --profile web add github:dhb861832993-star/pbr-render
或用于本地开发 / 或用于本地开发
pnpm install
node scripts/build.mjs
dsh plugin --profile web add link:/path/to/pbr-render
重启 dsh web;在新会话中生效。
重启 dsh web;在新会话中生效。
使用 / 使用
插件会自动注入系统提示指南。模型调用 pbr_render 工具来验证路径,然后输出 pbr3d 围栏:
插件会自动注入系统提示指南。模型调用 pbr_render 工具来验证路径,然后输出 pbr3d 围栏:
pbr3d
{"model":"E:/generated/robot.glb","autoRotate":true,"label":"API 生成的机器人 / API 生成的机器人"}
围栏规格 / 围栏规格
| 字段 / 字段 | 类型 / 类型 | 默认 / 默认 | 说明 / 说明 |
|---|---|---|---|
| model | string | 必填 / 必填 | 模型路径(绝对路径或相对于工作区),.glb/.gltf/.fbx / 模型路径(绝对路径或相对于工作区),.glb/.gltf/.fbx |
| autoRotate | boolean | true | 自动旋转 / 自动旋转 |
| background | string | #14161c | 场景背景色(当 envBackground:true 时被 HDR 背景覆盖)/ 场景背景色(当 envBackground:true 时被 HDR 背景覆盖) |
| env | string | studio | 内置 HDR 环境图:studio / sunset / outdoor / sunrise / night(CC0,Poly Haven 1K)/ 内置 HDR 环境图 |
| envBackground | boolean | false | 同时将 HDR 环境图显示为场景背景 / 同时将 HDR 环境图显示为场景背景 |
| envIntensity | number | 1.0 | 环境光照强度(HDR/IBL 亮度)/ 环境光照强度 |
| exposure | number | 1.0 | 曝光 0.2–3 / 曝光 0.2–3 |
| viewMode | string | pbr | 初始材质视图 / 初始材质视图 |
| label | string | — | 查看器下方的说明文字 / 查看器下方的说明文字 |
材质通道模式 / 材质通道模式
| 模式 / 模式 | 显示 / 显示 |
|---|---|
| pbr | 完整的基于物理的渲染 / 完整的基于物理的渲染 |
| basecolor / normal / emissive | 彩色贴图通道 / 彩色贴图通道 |
| roughness / metallic / ao | 标量通道以灰度显示(R/G/R 通道提取)/ 标量通道以灰度显示(R/G/R 通道提取) |
| wireframe | 线框 / 线框 |
架构 / 架构
- lib/index.js — 宿主端:pbr_render 工具 + 文件服务路由 + 系统提示部分 / 宿主端:pbr_render 工具 + 文件服务路由 + 系统提示部分
- lib/client.js — 浏览器端:DOM 监视 pbr3d 围栏 → 按需加载 three 资源 → 渲染 PBR / 浏览器端:DOM 监视 pbr3d 围栏 → 按需加载 three 资源 → 渲染 PBR
- src/three-entry.js + scripts/build.mjs — 通过 esbuild 打包 three.js 引擎 / 通过 esbuild 打包 three.js 引擎
- lib/assets/env/*.hdr — 内置 HDR 环境图(CC0,Poly Haven 1K,RGBE 格式)/ 内置 HDR 环境图(CC0,Poly Haven 1K,RGBE 格式)
- test-model.glb / test-tex.glb — 演示模型(纯色 + 完整贴图集)/ 演示模型(纯色 + 完整贴图集)
安全 / 安全
- 文件服务仅暴露工作区内的路径(防目录穿越)/ 文件服务仅暴露工作区内的路径(防目录穿越)
- 仅允许模型/纹理扩展名(.glb/.gltf/.bin/.ktx2/.hdr/.png/.jpg/.webp/.avif)/ 仅允许模型/纹理扩展名
- 文件上限 512 MiB / 512 MiB file ceiling
许可证
MIT同作者(dhb861832993-star)的其他插件
扫码进群