Official Codebase of 3DCodeVerse
Python
Fog-density fix hint agrees with the skill (0.003-0.008); scene.py header names validate-plan
gaoypeng9a3f41525e4d
diff --git a/harness/codeverse3d/languages/scene_blender/__init__.py b/harness/codeverse3d/languages/scene_blender/__init__.pyindex b3f03619..12b46127 100644--- a/harness/codeverse3d/languages/scene_blender/__init__.py+++ b/harness/codeverse3d/languages/scene_blender/__init__.py@@ -398,8 +398,8 @@ def render_scene_py(zones: Sequence[str], assets: Sequence[str], heroes: Sequencreturn "{\n" + "".join(f' "{k}": "{to_pascal(k)}",\n' for k in keys) + "}" if keys else "{}"plan_line = f"PLAN: {title} — {summary.strip()}\n" if title else ""- return f'''"""src/scene.py — ASSEMBLED BY THE HARNESS (codeverse3d assembler). Edit env / zones / assets-instead; re-assembly overwrites this file.+ return f'''"""src/scene.py — written by `3dcode validate-plan` from plan.json. Edit env / zones / assets+instead; the next validate-plan overwrites this file.{plan_line}The harness builds the scene in one Blender process: env.build_env(ctx); every hero GLB and assetmodule (build_<snake>(ctx)); then every zone's build(ctx) — each on its own (a zone that raises isdiff --git a/harness/codeverse3d/spatial/scene_placement.py b/harness/codeverse3d/spatial/scene_placement.pyindex 07ceb91c..4d439019 100644--- a/harness/codeverse3d/spatial/scene_placement.py+++ b/harness/codeverse3d/spatial/scene_placement.py@@ -196,7 +196,7 @@ LANGUAGE_WORDS: dict[str, dict[str, str]] = {"free": '{name}["placement"] = "free"',"no_fog_msg": "the scene has no atmosphere: no world Volume, bounded fog volume or mist — frames read as thin_atmosphere","no_fog": ("in build_env link a Volume Scatter / Principled Volume to the World Output's Volume (density "- "0.002-0.02, tinted like the sky horizon) or place a bounded fog volume over the play area"),+ "0.003-0.008, tinted like the sky horizon) or place a bounded fog volume over the play area"),"no_background_msg": "the world has no sky: no Sky Texture or Background colour on the world output","no_background": "in build_env give scene.world a Sky Texture (or the plan's sky colour on its Background node)","fog_far": ("thin the fog so 1/density >= {need:.0f} m ({spans:g} x the plan span; measured from the world volume) "