Calinou / quake2-neural-upscale

Quake 2 textures upscaled using ESRGAN and the Manga109Attempt model
66 stars 0 forks source link

Quake II RTX Steam Client Support? #8

Open ParkerrDev opened 5 months ago

ParkerrDev commented 5 months ago

Not really an issue, more of a question. I have the RTX Steam client version of the game, is it possible to get this working on that without any other client, using rtx rendering? Just looking to improve the character models in my game, as they are the only thing that don't look great.

Calinou commented 5 months ago

Out of curiosity, did you try installing the PKZ file like you would with Q2PRO? Quake 2 RTX is based on Q2PRO after all.

ParkerrDev commented 5 months ago

I did try that yes. Because I didn't know what I was doing, I put it in multiple locations, including the main game's files, the RTX version game folder, and the baseq2 folder. As instructions only specified user data folder, and I'm not sure exactly what thats referring to. Despite all these attempts I didn't notice a change in the textures or models.

AtomicStryker commented 1 month ago

It's a fairly simple issue, i think. If you read about q2rtx on github, they explain their material system: https://github.com/NVIDIA/Q2RTX#material-system

So then one checks the text file inside the zip/pkz Quake II RTX\baseq2\q2rtx_media.pkz\materials\baseq2.mat

and finds entries such as this

models/monsters/berserk/skin: texture_base models/monsters/berserk/skin.tga texture_normals models/monsters/berserk/skin_n.tga texture_emissive models/monsters/berserk/skin_light.tga

q2rtx loads the quake2-neural-upscale pkz just fine, i think, but this meterials mapping configures q2rtx to use tga files rather than the upscaled png ones.

So i think the fix would be to edit the relevant lines:

models/monsters/berserk/skin: texture_base models/monsters/berserk/skin.png texture_normals models/monsters/berserk/skin_n.tga texture_emissive models/monsters/berserk/skin_light.tga

But carefully! q2rtx baseq2.mat contains a bunch of monsters which quare2-neural-upscale does not contain

It works! Here, i'll share my patched baseq2.mat which needs to be put into Quake II RTX\baseq2\q2rtx_media.pkz, the materials folder inside. Open with with a zip tool. I only edited the monster models.

baseq2.mat.zip

AtomicStryker commented 1 month ago

Such patched .mat files could probably also be put in the quake2-neural-upscale pkz files at the correct path, then it would automatically override q2rtx, assuming the neural-upscale pkz is loaded after q2rtx_media.pkz

ParkerrDev commented 1 month ago

❤️