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

car brightness broken after collision export #12

Open
mrwonko opened this issue Jan 11, 2024 · 1 comment
Open

car brightness broken after collision export #12

mrwonko opened this issue Jan 11, 2024 · 1 comment

Comments

@mrwonko
Copy link
Owner

mrwonko commented Jan 11, 2024

Taking a vanilla cdb file and re-exporting it breaks car brightness for some reason.

Possible culprits:

  • there's a hidden invariant that requires surfaces (or some other data) to be ordered a specific way, which I violate
  • there's a lookup table in another file that needs to be kept in sync with the surfaces (and their ordering)
  • the scale factors for the coordinate system must be kept in sync with something (shadowmap extents? some .bed file?)
@mrwonko mrwonko changed the title car brightness broken after export car brightness broken after collision export Jan 11, 2024
@mrwonko
Copy link
Owner Author

mrwonko commented Mar 9, 2024

f270524 added shadowmap import. I tried manually aligning it, which was nontrivial. So I assume there must be a mapping defined somewhere, i.e. where does the shadowmap start and end? It doesn't look like the collision file contains this info, so I find it unlikely that the issue is related to the shadowmap, but I'll need to perform more experiments to narrow it down.

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

1 participant