-
Notifications
You must be signed in to change notification settings - Fork 61
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
Sun doesn't contribute to scene lighting #376
Comments
Can confirm the bug happening in the current 2.0.-alpha1 build. But I in my case I tried building the BSP with 0.18.2 qbsp and still got no sun. Another thing is that the sun doesn't render either when set in worldspawn or via a light entity. |
Admittedly my testing wasn't extensive, so I probably made a mistake. @fabiolimamp can you confirm that qbsp is the only affected executable? |
Nope, like I said, even running the BSP step with the 0.18.2 qbsp,exe got no sun for me. |
Same here, going back to a5c0f0e brings the light back, haven't checked what commit closer to HEAD that still works. Oddly enough lightpreview is not affected. Fun thought would be if CI would generate a huge atlas and upload somewhere for before/after CI build for a set of variations. |
f93a36c is what introduced the breakage. I don't understand why because that commit was only supposed to change the handling of missing textures to match the old behaviour, but I'm compiling sun_test.map with all textures available so the handling of missing textures shouldn't be relevant.. |
Are we removing texture names from dummy textures? They should still be retained... |
I must just be corrupting the dmiptex lump in that commit..
I think we need to remove them for backwards compatibility; prior to f93a36c, maps with missing textures would crash winquake, and other engines. vkQuake + QS and others applied a patch to work around this, because some bsp's were released in a map pack with these 0x0 textures: They also rendered wrong in Fitzquake/QS - missing textures are supposed to render with an orange checkerboard. Also I think I broke |
I think I finally tracked down what's happening here. The bug is suppressed if you have a .wad loaded containing a "skip" texture (and no other missing textures in the map.) If you don't have that, the "skip" texture we always write in qbsp gets written as -1 and with no name.
|
Oh this explains why we had crashes in the _project_texture pathways too; it was finding an empty image with no pixels, and then divided by zero... |
Built from the latest commit of the brushbsp branch. Any form of sun contribution seems to be ignored in the lightmapping process. From elimination the bug manifests from the new
qbsp
executable. Using the latestvis
andlight
with the 0.18.2qbsp
executable gives the expected correct result. I have not determined the earliest commit where the bug appears. Attached are two screenshots, with the expected result and what I get with the latest build. Test map also attached (only depends on START.WAD).sun_test.zip
I have tested and verified that the bug occurs both on Windows 10 and Arch Linux.
The text was updated successfully, but these errors were encountered: