-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only one pointlight at a time possible #1772
Comments
Tried your file, not working for me (and probably many others too, judging by the similar issues I missed to link). |
I use Git version. I also have this problem in Windows but not in Linux. Did you already tryed with a Windows or Linux Krom export? |
I don't have a Linux machine. A Windows Krom export does result in the deferred error. If I set the Play mode to Browser in works though. |
Then the problem is happening in Windows Krom export, as it occurs in Krom and Kromx (not tested in C). I will test other builds here and see what happens |
It's also happening to me on Krom (Windows 10). There was a small discussion about this and similar lighting issues in the discord channel: Summary: Instead of this: SamplerComparisonState _shadowMapSpot_sampler[4] : register(s0);
SamplerComparisonState _shadowMapPoint_sampler[4] : register(s1); The generated output should probably look like this (source: https://stackoverflow.com/a/32479831/9985959): SamplerComparisonState _shadowMapSpot_sampler[4] : register(s0);
SamplerComparisonState _shadowMapPoint_sampler[4] : register(s4); // <-- s4 instead of s1 because the arrays have length 4 I'm unfortunately not able to help here, maybe it's even a Kha issue (because of the glsl -> hlsl conversion), I don't know. Edit: I think this might be a Krafix issue. If you export with opengl it obviously works (glsl) but with DirectX it fails (hlsl), so the conversion is probably wrong. Maybe those files have to be fixed: https://github.com/Kode/krafix/blob/master/Sources/D3D11Compiler.cpp and https://github.com/Kode/krafix/blob/master/Sources/D3D9Compiler.cpp |
I tried to build Kromx for Vulkan but it fails. As for OpenGL, it build a Krom.exe without any errors, but when I actually try to build the Game with Armory and then launch it nothing happens. When I try to open it via commandline no messages are there, it is just instantly done. That might be because I did stuff wrong, but I am don't know what that could be. I used these instructions to build Kromx, I just replaced the "direct3d11" with "opengl" or "vulkan". |
When adding a second light to the scene, various errors occur with the
When using System Test File |
There is a workaround now, thanks to #2102. When the new |
Found a minimal reproducible example file for Krafix, so it's a Krafix bug: Kode/krafix#88 |
Fixed in SDK 22.07 :) |
Links to #1140 #1429, reposting because these issues don't have the error posted and don't get the attention they really need.
Description
When using more than one pointlamp this error occurs:
When using Deferred rendering:
When using Forward rendering:
This makes it impossible to build bigger scenes in Armory.
To Reproduce
Place more than one pointlamp
System
Blender: 2.82/2.83
Armory: latest git
OS: Win 10
Graphics card: Gtx 1060
lampbug.zip
The text was updated successfully, but these errors were encountered: