ModelTranslator: use adaptive ray distance in bake (auto), report source

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ud18010
2026-07-23 17:08:58 +08:00
co-authored by Claude Opus 4.8
parent 3ae981e40d
commit e66ba296c1
2 changed files with 53 additions and 2 deletions
+5
View File
@@ -33,6 +33,11 @@ def main():
blender_args=("-t", "1"))
print("== %s(高 %d 面 / 低 %d 面,射线距离 %.4f-> %s" %
(s["stem"], s["high_tris"], s["low_tris"], s["ray_distance"], outdir))
r = s.get("ray", {})
p99 = "n/a" if r.get("distance_p99") is None else "%.4f" % r["distance_p99"]
print(" 射线: 来源=%s P99=%s 距离=%.4f%s" %
(r.get("source", "?"), p99, r.get("value", s["ray_distance"]),
"(已夹取)" if r.get("capped") else ""))
for name, fname in s["outputs"].items():
print(" %-10s %s" % (name, fname))
for w in s["warnings"]: