Multi scene crashes compile

I can create a New Scene and things work fine but if I do a Full Copy of a scene the file will no longer compile, even if it’s removed the scene is then corrupted and won’t compile.

Brian

Hi, can you please share the error message? I tried it but couldn’t reproduce it so far.

Edit:
Is it this error message?

\deferred_light.frag.hlsl(176,20-84): warning X3570: gradient instruction used in a loop with varying iteration, attempting to unroll the loop
\deferred_light.frag.hlsl(5,14-30): error X4500: overlapping register semantics not yet implemented 's1'
\deferred_light.frag.hlsl(7,14-30): error X4500: overlapping register semantics not yet implemented 's2'
\deferred_light.frag.hlsl(9,14-30): error X4500: overlapping register semantics not yet implemented 's3'
\deferred_light.frag.hlsl(4,19-26): error X4500: overlapping register semantics not yet implemented 't1'
\deferred_light.frag.hlsl(6,19-26): error X4500: overlapping register semantics not yet implemented 't2'
\deferred_light.frag.hlsl(8,19-26): error X4500: overlapping register semantics not yet implemented 't3'

I found an old file called BrokenSceneCopy.blend (seems like this issue came up before :smiley: ) and this is caused by the fact that all lights of all scenes are exported and there is a Krafix bug when using too many lights on Windows/DirectX. You can workaround this by enabling the new Shadow Map Atlas feature.

1 Like

here it is:

Read prefs: C:\Users\Brian\AppData\Roaming\Blender Foundation\Blender\2.93\config\userpref.blend
Armory: Proxy objects synchronized
Read blend: C:\Users\Brian\Desktop\multi_scene\multi scene.blend
Starting App Manager server (port 8668, package BLENDER)
Project cleaned
Armory v2021.8 ($Id: 7adebe05bb6fea0a0cd02fed7b31987a19c73bab $)
Saved: ‘C:\Users\Brian\Desktop\multi_scene\build_multi scene\compiled\Assets\envmaps\env_World.jpg’
Time: 00:00.55 (Saving: 00:00.30)

CMFT info: Converting latlong image to cubemap.
CMFT info: Saving spherical harmonics coefficients to C:\Users\Brian\Desktop\multi_scene\build_multi scene/compiled/Assets/envmaps/env_World_irradiance.c
CMFT info: Done.
#512x256
#256x128
#128x64
#64x32
#32x16
#16x8
#8x4
#4x2
#2x1
#1x1
Saved: ‘C:\Users\Brian\Desktop\multi_scene\build_multi scene\compiled\Assets\envmaps\env_World_002.jpg’
Time: 00:00.18 (Saving: 00:00.01)

CMFT info: Converting latlong image to cubemap.
CMFT info: Saving spherical harmonics coefficients to C:\Users\Brian\Desktop\multi_scene\build_multi scene/compiled/Assets/envmaps/env_World_002_irradiance.c
CMFT info: Done.
#512x256
#256x128
#128x64
#64x32
#32x16
#16x8
#8x4
#4x2
#2x1
#1x1
Exporting Scene
Scene exported in 0.006s
Exporting Scene.001
Scene exported in 0.003s
C:\Users\Brian\Desktop\multi_scene\build_multi scene\debug\temp\deferred_light.frag.hlsl(176,20-84): warning X3570: gradient instruction used in a loop with varying iteration, attempting to unroll the loop
C:\Users\Brian\Desktop\multi_scene\build_multi scene\debug\temp\deferred_light.frag.hlsl(5,14-30): error X4500: overlapping register semantics not yet implemented ‘s1’
C:\Users\Brian\Desktop\multi_scene\build_multi scene\debug\temp\deferred_light.frag.hlsl(7,14-30): error X4500: overlapping register semantics not yet implemented ‘s2’
C:\Users\Brian\Desktop\multi_scene\build_multi scene\debug\temp\deferred_light.frag.hlsl(9,14-30): error X4500: overlapping register semantics not yet implemented ‘s3’
C:\Users\Brian\Desktop\multi_scene\build_multi scene\debug\temp\deferred_light.frag.hlsl(4,19-26): error X4500: overlapping register semantics not yet implemented ‘t1’
C:\Users\Brian\Desktop\multi_scene\build_multi scene\debug\temp\deferred_light.frag.hlsl(6,19-26): error X4500: overlapping register semantics not yet implemented ‘t2’
C:\Users\Brian\Desktop\multi_scene\build_multi scene\debug\temp\deferred_light.frag.hlsl(8,19-26): error X4500: overlapping register semantics not yet implemented ‘t3’

Compiling shader 4 of 22 (deferred_light.frag.glsl) failed:
Shader compiler error.
(node:18412) UnhandledPromiseRejectionWarning: Shader compiler error.
(node:18412) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:18412) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Finished in 5.279s
ERROR: Build failed, check console

Please enable this checkbox, and most likely the issue should be solved

1 Like

Still not working, thanks for the help.

Got it working, I had to recreate it from scratch. Thanks!