lighting: dynamic-only lights so no lighting build is required
The editor warned 'LIGHTING NEEDS TO BE REBUILT' (Build Lighting Only / BuildLighting) because the sun and sky were Stationary with no baked lightmap. The demo is a fixed daytime scene lit entirely dynamically, so: - Config/DefaultEngine.ini: r.AllowStaticLighting=False - nothing to build. - DemoMap + ReviewMap builders: sun, sky light, height fog and the staged mesh components are set to ComponentMobility.MOVABLE. Also clears the Android File Server SecurityToken in DefaultEngine.ini: the plugin is disabled and excluded from shipping, and the value is a credential that must not be committed. All 14 screenshots re-rendered; no lighting warnings in the build or run logs.
This commit is contained in:
1 parent
830ce596fa
commit
240bad9af1
20 files changed
+81
-41
No files matched your search
@@ -96,11 +96,28 @@ try:
|
||||
else:
|
||||
log("floor spawn failed")
|
||||
|
||||
if spawn(unreal.DirectionalLight, unreal.Vector(0, 0, 900), "RenderKeyLight",
|
||||
rot=unreal.Rotator(pitch=-38.0, yaw=35.0, roll=0.0)):
|
||||
log("staged: DirectionalLight")
|
||||
if spawn(unreal.SkyLight, unreal.Vector(0, 0, 1200), "RenderFillSky"):
|
||||
log("staged: SkyLight")
|
||||
# Lights are Movable and the project disables static lighting
|
||||
# (r.AllowStaticLighting=False), so no baked lighting build is needed and
|
||||
# the editor stops asking to rebuild lighting.
|
||||
sun = spawn(unreal.DirectionalLight, unreal.Vector(0, 0, 900), "RenderKeyLight",
|
||||
rot=unreal.Rotator(pitch=-38.0, yaw=35.0, roll=0.0))
|
||||
if sun:
|
||||
comp = sun.get_component_by_class(unreal.DirectionalLightComponent)
|
||||
if comp:
|
||||
try:
|
||||
comp.set_mobility(unreal.ComponentMobility.MOVABLE)
|
||||
except Exception as exc: # noqa: BLE001
|
||||
log(f"key light mobility not set: {exc!r}")
|
||||
log("staged: DirectionalLight (movable)")
|
||||
sky = spawn(unreal.SkyLight, unreal.Vector(0, 0, 1200), "RenderFillSky")
|
||||
if sky:
|
||||
comp = sky.get_component_by_class(unreal.SkyLightComponent)
|
||||
if comp:
|
||||
try:
|
||||
comp.set_mobility(unreal.ComponentMobility.MOVABLE)
|
||||
except Exception as exc: # noqa: BLE001
|
||||
log(f"fill sky mobility not set: {exc!r}")
|
||||
log("staged: SkyLight (movable)")
|
||||
if spawn(unreal.SkyAtmosphere, unreal.Vector(0, 0, 0), "RenderSky"):
|
||||
log("staged: SkyAtmosphere")
|
||||
|
||||
|
||||
Reference in new issue
Block a user