Skip to content
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

[Bug] .X file lightning issues #1119

Open
RakagoBVE opened this issue Feb 2, 2025 · 3 comments
Open

[Bug] .X file lightning issues #1119

RakagoBVE opened this issue Feb 2, 2025 · 3 comments

Comments

@RakagoBVE
Copy link

RakagoBVE commented Feb 2, 2025

In the Object Viewer, .X models display correctly and they are affected by night lightning. However in-game they are always lit, and they are not affected by any light source.

My game version is 1.11.1.1 64-bit.

@RakagoBVE
Copy link
Author

This bug is still present in version 1.11.1.3.

Images here:
Image
Image

Although .x models are not affected by the .Brightness command, they are affected by the .AmbientLight command.

@leezer3
Copy link
Owner

leezer3 commented Mar 13, 2025

ObjectViewer is actually 'wrong' here, although I haven't got to the bottom of why exactly.

https://paulbourke.net/dataformats/directx/#xfilefrm_Template_Material

The DirectX format explicitly expects materials be be emissive. (fourth line of the material definition sets the emissive color, which is a required template)

@RakagoBVE
Copy link
Author

It shouldn't light up as the emission color is set to 0,0,0. If it's set to 255,255,255 then it lights up in Object Viewer as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants