leezer3 / OpenBVE

OpenBVE- A free train simulator
http://www.openbve-project.net
281 stars 51 forks source link

Transparency issue in .x object files #1074

Closed soyachoin104 closed 1 month ago

soyachoin104 commented 1 month ago

I recently downloaded the new 1.11.0.6 build and also a new released train, found here: http://ryuutazx1370.blog.fc2.com/blog-entry-27.html However, loading this train into the game shows all the supposed transparent parts of the object as black (see screenshot) image I also tried this with today's (15th Oct) nightly build, same issue. Looking into the file contents, it seems all the objects are .x files which can't be directly edited.

leezer3 commented 1 month ago

Have you tried this in-game, or just in Object Viewer / Route Viewer?

It's using the old method of creating transparency in an X file (pure black e.g. 0;0;0) in a texture being rendered as transparent. This is only set / used in the main game, and that only with the Enable Hacks for Buggy Older Content setting enabled.

Note: This setting should be enabled unless you're debugging something specifically.

soyachoin104 commented 1 month ago

Seems like that was unchecked for some reason. Seems to load fine in-game now. Thanks