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

Ignore a material definition if a game overrides a texture #201

Merged
merged 4 commits into from May 12, 2022

Conversation

res2k
Copy link
Contributor

@res2k res2k commented Mar 6, 2022

Some games override baseq2 assets without changing the name -
e.g. 'action' replaces models/weapons/v_blast with something looking completely differently.
Using the material definition from baseq2 makes things look wrong.
So try to detect if the game is overriding a texture from baseq2 and, if that is the case, ignore the material definition (if it's from baseq2 - to allow for a game-specific material definition).

(I previously submitted something with the same intent as part of #116 [2415da2], but it seems those changes got lost or ineffective during the material system overhaul.)

@apanteleev
Copy link
Collaborator

Is it expected that base1 looks like this after these changes? ;)

quake001

@res2k
Copy link
Contributor Author

res2k commented Mar 11, 2022

Oops 🙈

Should work after the last commit...

@apanteleev apanteleev merged commit 4ef1d25 into NVIDIA:master May 12, 2022
@res2k res2k deleted the fix-game-texture-overrides branch May 12, 2022 11:58
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

Successfully merging this pull request may close these issues.

None yet

2 participants