A tool to fix daytime/nighttime texture related lighting issues
3 posters
Page 1 of 1
A tool to fix daytime/nighttime texture related lighting issues
After a discussion with @LXQt, I made a tool to automatically fix the problem raised by the recent change in lighting behaviour with the same texture defined for both daytime and nighttime. (https://github.com/leezer3/OpenBVE/wiki/Errata#lighting-behaviour-with-the-same-texture-defined-for-both-daytime-and-nighttime)
This tool can batch-process CSV and B3D models, while detecting and patching this issue by automatically removing duplicate textures and introducing emissive color commands.
This tool can certainly help developers adapt their models to the new standard, because manually modifying all the models is time-consuming, but it can be done fully automatically with this tool.
Since it is a third-party tool that assists in fixing the problem, I would personally recommend listing this tool on the Errata wiki page.
The tool can be downloaded at https://www.zbx1425.tk/nautilus/daynightfix.html.
This tool can batch-process CSV and B3D models, while detecting and patching this issue by automatically removing duplicate textures and introducing emissive color commands.
This tool can certainly help developers adapt their models to the new standard, because manually modifying all the models is time-consuming, but it can be done fully automatically with this tool.
Since it is a third-party tool that assists in fixing the problem, I would personally recommend listing this tool on the Errata wiki page.
The tool can be downloaded at https://www.zbx1425.tk/nautilus/daynightfix.html.
Midnight Express Ginga81 likes this post
Re: A tool to fix daytime/nighttime texture related lighting issues
Linked from the errata note.
I'd appreciate it if you also added a brief English description to your page as it's all in Chinese at the minute
I'd appreciate it if you also added a brief English description to your page as it's all in Chinese at the minute
Re: A tool to fix daytime/nighttime texture related lighting issues
Will do that later. Thanks!leezer3 wrote:Linked from the errata note.
I'd appreciate it if you also added a brief English description to your page as it's all in Chinese at the minute
Re: A tool to fix daytime/nighttime texture related lighting issues
I think it's a great tool.
Howerver, this issue is not limited to specifying the same thing.
This issue occurs even when different textures are specified for Daytime and Nighttime.
https://github.com/leezer3/OpenBVE/issues/490
https://github.com/leezer3/OpenBVE/issues/480#issuecomment-627630431
The errata text should be corrected.
Howerver, this issue is not limited to specifying the same thing.
This issue occurs even when different textures are specified for Daytime and Nighttime.
https://github.com/leezer3/OpenBVE/issues/490
https://github.com/leezer3/OpenBVE/issues/480#issuecomment-627630431
The errata text should be corrected.
Last edited by S520 on Wed Sep 09, 2020 3:59 pm; edited 1 time in total (Reason for editing : Add a link of the issue)
leezer3 likes this post
Re: A tool to fix daytime/nighttime texture related lighting issues
The text was right, the title wasn't, now corrected.
S520 likes this post
Re: A tool to fix daytime/nighttime texture related lighting issues
So if I understood it correctly, to get the lighting working in the same (buggy) way as before, pure white EmmisiveColor has to be applied not only to faces with the same day/night texture, but actually all faces that used a nighttime texture.leezer3 wrote:The text was right, the title wasn't, now corrected.
So, to achieve the same legacy effect, the following code
- Code:
......
LoadTexture, day.png, night.png
- Code:
......
SetEmissiveColor, 255, 255, 255
LoadTexture, day.png, night.png
Also, to achieve the same legacy effect, should the following code
- Code:
......
LoadTexture, day.png, day.png
- Code:
......
SetEmissiveColor, 255, 255, 255
LoadTexture, day.png
- Code:
......
SetEmissiveColor, 255, 255, 255
LoadTexture, day.png, day.png
Re: A tool to fix daytime/nighttime texture related lighting issues
Correct.
We originally thought it was *just* identical textures (which were the vast majority of the observed effect), but it's actually all
We originally thought it was *just* identical textures (which were the vast majority of the observed effect), but it's actually all
Re: A tool to fix daytime/nighttime texture related lighting issues
Thanks!leezer3 wrote:Correct.
We originally thought it was *just* identical textures (which were the vast majority of the observed effect), but it's actually all
As for the second question, is there a visible difference between them?
- Code:
SetEmissiveColor, 255, 255, 255
LoadTexture, day.png
SetEmissiveColor, 255, 255, 255
LoadTexture, day.png, day.png
Similar topics
» Dynamic Lighting & Backgrounds, based upon the time of day
» Texture states like object states for texture
» Interior lighting
» UK railway signals- Help lighting this tree
» [NOT SIM RELATED] New life begins!
» Texture states like object states for texture
» Interior lighting
» UK railway signals- Help lighting this tree
» [NOT SIM RELATED] New life begins!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum