Page 1 of 1

Building 172 does not have Emissive windows at night/day

Posted: Wed Nov 10, 2021 1:49 pm
by King of Worms
Its quite rare building so it took a while for me to realize it has this issue.

172 (summer) and I guess 173 (winter)
01.jpg
01.jpg (303.58 KiB) Viewed 718 times
02.jpg
02.jpg (198.97 KiB) Viewed 718 times

Re: Building 172 does not have Emissive windows at night/day

Posted: Wed Nov 10, 2021 10:09 pm
by Interkarma
I suspect the window setup might not include that archive. Could you please drop me a save here so I can quickly repro and take a look?

Re: Building 172 does not have Emissive windows at night/day

Posted: Thu Nov 11, 2021 10:56 am
by King of Worms
Hi, save is here:
SAVE451.rar
(247.99 KiB) Downloaded 64 times
In case you use different terrain sampler and get re-positioned, the building is located here:
DaggerfallUnity 2021-11-11 11-53-27.jpg
DaggerfallUnity 2021-11-11 11-53-27.jpg (289.4 KiB) Viewed 660 times
*
*
I have not tested the Winter version but I suspect is as not working as well
When I got inside the building, it used different textures than 17x interior archive, but that might not be a bug.

Re: Building 172 does not have Emissive windows at night/day

Posted: Thu Nov 11, 2021 2:31 pm
by Interkarma
Thanks for save and highlighting building.

The first problem is this one isn't a proper sequenced texture archive - e.g. there's no equivalent 072, 372, 472. It's just a standalone texture set for 171-173. That by itself it fine, I can add special handling to flag these textures as windows.

The second problem is that the window parts aren't painted with the correct index for emission (0xff) in gamedata. So even if they're flagged as windows they don't pick up emission with classic textures.

I checked in classic and unsurprisingly it's the same thing. This texture is basically broken in gamedata and DFU just inherits that.

fall_033.png
fall_033.png (14.38 KiB) Viewed 640 times

I've merged change to flag textures as windows, so at least DFU should load your emission maps now. It won't help classic textures of course, they're just broken, but it should work for mods now provided they supply an emission map.

Re: Building 172 does not have Emissive windows at night/day

Posted: Thu Nov 11, 2021 9:40 pm
by King of Worms
I had a feeling this texture set is off in multiple ways..
Im glad that at least the mods can correct this now. Thank you :)

PS: Good thing is, its very underutilized ingame, so not many ppl will notice this bug. That might also be the reason it slipped to the release in 96