hzqst / MetaHookSv

MetaHook (https://github.com/nagist/metahook) porting for SvEngine (GoldSrc engine modified by Sven-Coop)
MIT License
149 stars 38 forks source link

PBR Rendering mdl #320

Closed d3nchk closed 11 months ago

d3nchk commented 1 year ago

How are things going with adding PBR rendering on studio models? Any progress?

hzqst commented 1 year ago

I am mostly working on CS2 for the next two weeks but will get back to you when I made any progress on it. Thanks for being patient.

hzqst commented 11 months ago

image

a3c33a31eafaeb6312ca3df04fd66d20

done in https://github.com/hzqst/MetaHookSv/releases/tag/v20231218a

see https://github.com/hzqst/MetaHookSv/blob/main/Build/svencoop_addon/models/fallguys/door6_external.txt

d3nchk commented 11 months ago

image

a3c33a31eafaeb6312ca3df04fd66d20

done in https://github.com/hzqst/MetaHookSv/releases/tag/v20231218a

see https://github.com/hzqst/MetaHookSv/blob/main/Build/svencoop_addon/models/fallguys/door6_external.txt

Something's wrong. I just put a new build of metahook (czero version is the latest at the moment, i.e. HL25 platform)

I decided to check and this is what happens: de_dust0000 de_dust0001

hzqst commented 11 months ago

image

a3c33a31eafaeb6312ca3df04fd66d20

done in https://github.com/hzqst/MetaHookSv/releases/tag/v20231218a see https://github.com/hzqst/MetaHookSv/blob/main/Build/svencoop_addon/models/fallguys/door6_external.txt

Something's wrong. I just put a new build of metahook (czero version is the latest at the moment, i.e. HL25 platform)

I decided to check and this is what happens: de_dust0000 de_dust0001

Can you provide the corresponding textures and model?

d3nchk commented 11 months ago

image

a3c33a31eafaeb6312ca3df04fd66d20

done in https://github.com/hzqst/MetaHookSv/releases/tag/v20231218a see https://github.com/hzqst/MetaHookSv/blob/main/Build/svencoop_addon/models/fallguys/door6_external.txt

Something's wrong. I just put a new build of metahook (czero version is the latest at the moment, i.e. HL25 platform) I decided to check and this is what happens: de_dust0000 de_dust0001

Can you provide the corresponding textures and model?

Sending it out. Please check if I have made the manifest (v_deagle_external) correctly, in particular I am interested in whether it is necessary to set scale everywhere, or one line for all maps-replacescale will be enough And check if I specified parallaxtexture parameter for height map correctly. I can't see what I got due to the problems shown above.

I attach a link to google drive as the file weighs a lot

https://drive.google.com/file/d/1vCfz6-SLNmvVJDsyvwjDpo8KMoflwsj6/view?usp=drive_link

hzqst commented 11 months ago

image

a3c33a31eafaeb6312ca3df04fd66d20

done in https://github.com/hzqst/MetaHookSv/releases/tag/v20231218a see https://github.com/hzqst/MetaHookSv/blob/main/Build/svencoop_addon/models/fallguys/door6_external.txt

Something's wrong. I just put a new build of metahook (czero version is the latest at the moment, i.e. HL25 platform) I decided to check and this is what happens: de_dust0000 de_dust0001

Can you provide the corresponding textures and model?

Sending it out. Please check if I have made the manifest (v_deagle_external) correctly, in particular I am interested in whether it is necessary to set scale everywhere, or one line for all maps-replacescale will be enough And check if I specified parallaxtexture parameter for height map correctly. I can't see what I got due to the problems shown above.

I attach a link to google drive as the file weighs a lot

https://drive.google.com/file/d/1vCfz6-SLNmvVJDsyvwjDpo8KMoflwsj6/view?usp=drive_link

I failed to repro your issue under svencoop, is that a goldsrc-dedicated issue?

https://github.com/hzqst/MetaHookSv/assets/12287588/26c32a10-1188-41a8-9c24-1bcf9f860182

d3nchk commented 11 months ago

image

a3c33a31eafaeb6312ca3df04fd66d20

done in https://github.com/hzqst/MetaHookSv/releases/tag/v20231218a see https://github.com/hzqst/MetaHookSv/blob/main/Build/svencoop_addon/models/fallguys/door6_external.txt

Something's wrong. I just put a new build of metahook (czero version is the latest at the moment, i.e. HL25 platform) I decided to check and this is what happens: de_dust0000 de_dust0001

Can you provide the corresponding textures and model?

Sending it out. Please check if I have made the manifest (v_deagle_external) correctly, in particular I am interested in whether it is necessary to set scale everywhere, or one line for all maps-replacescale will be enough And check if I specified parallaxtexture parameter for height map correctly. I can't see what I got due to the problems shown above. I attach a link to google drive as the file weighs a lot https://drive.google.com/file/d/1vCfz6-SLNmvVJDsyvwjDpo8KMoflwsj6/view?usp=drive_link

I failed to repro your issue under svencoop, is that a goldsrc-dedicated issue?

2023-12-19.21-46-43.mp4

That's the thing, I don't know what the problem is. Do you have the latest version of hl? I installed yesterday a fresh build from steam, rolled metahook, and threw in the models. Used czero. I didn't do anything else. In the console, too, there are no scary inscriptions. Maybe it's AMD drivers again?

hzqst commented 11 months ago

image

a3c33a31eafaeb6312ca3df04fd66d20

done in https://github.com/hzqst/MetaHookSv/releases/tag/v20231218a see https://github.com/hzqst/MetaHookSv/blob/main/Build/svencoop_addon/models/fallguys/door6_external.txt

Something's wrong. I just put a new build of metahook (czero version is the latest at the moment, i.e. HL25 platform) I decided to check and this is what happens: de_dust0000 de_dust0001

Can you provide the corresponding textures and model?

Sending it out. Please check if I have made the manifest (v_deagle_external) correctly, in particular I am interested in whether it is necessary to set scale everywhere, or one line for all maps-replacescale will be enough And check if I specified parallaxtexture parameter for height map correctly. I can't see what I got due to the problems shown above. I attach a link to google drive as the file weighs a lot https://drive.google.com/file/d/1vCfz6-SLNmvVJDsyvwjDpo8KMoflwsj6/view?usp=drive_link

I failed to repro your issue under svencoop, is that a goldsrc-dedicated issue? 2023-12-19.21-46-43.mp4

That's the thing, I don't know what the problem is. Do you have the latest version of hl? I installed yesterday a fresh build from steam, rolled metahook, and threw in the models. Used czero. I didn't do anything else. In the console, too, there are no scary inscriptions. Maybe it's AMD drivers again?

Just found out the root cause --- GoldSrc uses the higher 16bits of the OpenGL texture id as color table id (for palette iirc) which are the same bits I am using for external texture management, while SvEngine has removed the support for color table extension. A fix will be there soon.

d3nchk commented 11 months ago

image

a3c33a31eafaeb6312ca3df04fd66d20

done in https://github.com/hzqst/MetaHookSv/releases/tag/v20231218a see https://github.com/hzqst/MetaHookSv/blob/main/Build/svencoop_addon/models/fallguys/door6_external.txt

Something's wrong. I just put a new build of metahook (czero version is the latest at the moment, i.e. HL25 platform) I decided to check and this is what happens: de_dust0000 de_dust0001

Can you provide the corresponding textures and model?

Sending it out. Please check if I have made the manifest (v_deagle_external) correctly, in particular I am interested in whether it is necessary to set scale everywhere, or one line for all maps-replacescale will be enough And check if I specified parallaxtexture parameter for height map correctly. I can't see what I got due to the problems shown above. I attach a link to google drive as the file weighs a lot https://drive.google.com/file/d/1vCfz6-SLNmvVJDsyvwjDpo8KMoflwsj6/view?usp=drive_link

I failed to repro your issue under svencoop, is that a goldsrc-dedicated issue? 2023-12-19.21-46-43.mp4

That's the thing, I don't know what the problem is. Do you have the latest version of hl? I installed yesterday a fresh build from steam, rolled metahook, and threw in the models. Used czero. I didn't do anything else. In the console, too, there are no scary inscriptions. Maybe it's AMD drivers again?

Just found out the root cause --- GoldSrc uses the higher 16bits of the OpenGL texture id as color table id (for palette iirc) which are the same bits I am using for external texture management, while SvEngine has removed the support for color table extension. A fix will be there soon.

Ok

hzqst commented 11 months ago

Fixed in the latest commit.

285c04122be3fb437a111526767f2515