-
Notifications
You must be signed in to change notification settings - Fork 52
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
Self-illumination even though Directx-Obj is not set #1049
Comments
This is an exporter issue, not our bug. Your X file has a emissive color set of pure white (255,255,255) X files don't allow you to enable / disable emission on a per-material basis, only set the color AFAIK, |
I received a report from a user that the issue is still not resolved. I gave him test.x, which worked fine on my Ubuntu+wine, but unlike me, it did not display properly at his OpenBVE. |
There is absolutely no difference internally between B3D and X. Any performance differences are going to be solely down to the model exporter. |
There's something very funny going on somewhere :/ The brightness command will have absolutely no effect on the lighting of the cubes you supplied above. The screenshots look slightly odd (I'd expect a clear R,G,B tint), but this may be due to the directional light value, and the way the blending interacts. Can he check to see if the old renderer has the issue? |
Do you mean you want screenshots with RGB 3 colors in the same ambient light using OldRenderer? |
I'll take a proper look next week. Don't necessarily need any more screenshots at the minute unless I can't reproduce then. |
OK, I've tested on both GL1.2 and GL3 on this PC and on a VM. If his system does not produce the corresponding images with the attached files, then there's something seriously wrong, and not with the program. 255,0,0: 0,255,0: 0,0,255: If these work, please can you attach the routefile he's using? |
I told him to follow this link, do a CSV test and submit the sample demo route data. |
I actuallly now know how he's caused that lighting glitch, although that was an accidental find...... It's being caused by an incorrect separator character in the routefile.
This is incorrect, and causes the bug. He should be using the semi-colon to separate the light components, e.g.
I'm not sure whether this explains the rest of his issue, but I'll add an appropriate error message for this case in a minute. |
He has just told me that there was a spelling mistake, just like you said. |
Great. I don't think we have an issue here then. |
Description
If we prepare a DirectX object with a header of 'xof 0302txt 0032', it will be affected by light in RouteViewer whether or not you assign a material to it, but in OpenBVE it will always be bright even at night, the same as if it were self-illuminated.
DirectX converted by assigning materials in Blender 2.79 -> metasequoia 3LE will be displayed correctly.
However, objects exported using Kusaanko's X exporter in Blender 4.0 or later will be affected.
https://github.com/kusaanko/Blender_XFileSupport_BVE
test.x was exported using Kusaanko's exporter.
The version of OpenBVE is 1.10.1.1.
Reproduction
Please use this sample route
x-self-illuminating.zip
Route
Please use sample route above.
Train
Maybe any.
Logs
This issue don't crash. So, no log.
Related information
The text was updated successfully, but these errors were encountered: