supertuxkart / stk-code

The code base of supertuxkart
Other
4.49k stars 1.06k forks source link

Regressions/issues in glossmaps/pbrdata #3807

Closed qwertychouskie closed 1 month ago

qwertychouskie commented 5 years ago

Will update as I think of/come across more issues.

Benau commented 5 years ago

mix(vec3(specMapValue / 2.0)?

MatthewsSam commented 5 years ago

Hi,

1) I created a legacy shader that uses the old value so old texture will use this shader 2) Tux's kart was probably created before the new formula 3) we should then use the one in the repository 4) weird it should be reflective even more now since non metallic surface reflect the sky (edit I just cĥecked and it might be caused by the normal map which seems too strong).

I will fix the xue thing 5) yeah this needt to be removed

qwertychouskie commented 5 years ago

@samuncle Is it intentional that a Red value of about 60% results in extreme glossiness? If you could please double-check the rendering calculations that would be appreciated, as I'm currently trying to adjust Tux's glossmaps to the new engine, but I'm getting the feeling that something is not right, it seems like some value may be getting doubled or something.

Benau commented 5 years ago

or do u think we can adjust the red channel of all pbr_data / gloss map like u in the past to remove g channel (using python / imagemagick?)

and i think you should come irc so we can discuss further....

Mrxx99 commented 5 years ago

But only changing maps will not affect addons, so they will still look wrong, no?

qwertychouskie commented 5 years ago

For now the gloss change was reverted for 0.10, but IMO the whole rendering equation needs to be revisited for 0.11 to ensure correctness.

I am currently working on Tux's glossmaps, will try to get them into the final 0.10.

qwertychouskie commented 5 years ago

@Benau Please commit these updated files: tux_update.zip

qwertychouskie commented 5 years ago

Tux's fixed files are now committed. @samuncle Can you please update Xue? The new Xue isn't committed to the media repo, and from the looks of things the proper way to fix it is to use Substance Painter.

Alternatively, if samuncle isn't able to before 0.10, going back to the old Xue would be the best option. I can update the old Xue's glossmaps for PBR.

qwertychouskie commented 5 years ago

Fix for Kiki's kart: kiki_glossmap_fix.zip