用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ming1zhou88/minemap-skills --skill minemap-model-runtime-debug命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | minemap-model-runtime-debug |
| description | MineMap 模型运行时调试规范。用于爆炸视图、材质/纹理更新、线框显示、属性外挂、运行时查看与距离可见性控制。 |
这类能力主要来自 query/interaction demo,但并不全是内核“业务主 API”。需要分三层看:
SceneModel、材质、纹理、distanceDisplayConditionaccurateBounding、线框开关map.addSceneComponent({ type: '3d-model', ... })loaded(model)SceneModel#accurateBoundingSceneModel#distanceDisplayConditionSceneModel#showEmbeddedWireframeSceneModel#generateWireframeSceneModel#showGeneratedWireframematerial.setOptions(...)minemap.TextureLoader.load(...)对应 demo:
demo/html/UpdateGLTFTexture.htmldemo/html/material-update.html推荐顺序:
feature.materialmaterial.setOptions(...)TextureLoader.load(...) 异步加载后再设置对应 demo:
demo/html/ModelWireframeRender.htmldemo/html/ModelCreaseEdgeWireframeRender.html源码已公开:
showEmbeddedWireframegenerateWireframeshowGeneratedWireframe最近 master 还补了一条更细的兼容行为:
_wireframe_crease_edge 也被纳入内置尾缀识别这意味着当前版本的推荐顺序应该写得更明确:
_wireframe / _crease_edge 时,优先 showEmbeddedWireframegenerateWireframegenerateWireframe 主要是调试/表达增强,不应默认全开不要把 demo 中的私有遍历、节点调试逻辑当成唯一入口。
accurateBounding对应 demo:
demo/html/DistanceBasedVisibilityCulling.htmldemo/html/CameraRegionLimiter.htmlaccurateBounding 的定位很明确:
只在动画/变形模型确实出现剔除异常时启用。
对应 demo:
demo/html/3DModelExplodedView.htmldemo/html/3DModelViewer.html这类页面说明 MineMap 支持:
但 demo 中存在私有字段访问,技能库不把它写成正式推荐 API。
对应 demo:
demo/html/Fbx-PropAttr-WriteShow.htmldemo/html/BIM2GLTF-AttachInfo.html结论:
material 接口不要把 primitive._material 之类私有字段写成标准方案。
不要默认给全部模型开启 generateWireframe。
distanceDisplayCondition 是距离显示控制,不是 LOD 系统它只负责近远可见范围。
accurateBoundingdemo/html/UpdateGLTFTexture.htmldemo/html/material-update.htmldemo/html/ModelWireframeRender.htmldemo/html/ModelCreaseEdgeWireframeRender.htmldemo/html/3DModelExplodedView.htmldemo/html/3DModelViewer.htmldemo/html/Fbx-PropAttr-WriteShow.htmldemo/html/DistanceBasedVisibilityCulling.htmldemo/html/PBR-GLTF-3DTiles.htmlminemap-scene-componentsminemap-material-system-and-shadingminemap-transformsminemap-business-oblique-bim基于 SOC 职业分类