dpjudas / UT99VulkanDrv

Vulkan, Direct3D 11 and Direct3D 12 renderer for Unreal Tournament (UT99)
Other
68 stars 8 forks source link

Detail textures in Vulkan are scaled incorrectly #11

Open BerserkerBG opened 1 year ago

BerserkerBG commented 1 year ago

Detail textures in Vulkan are not scaled correctly.

Vulkan example: Screenshot_33 You can notice how small the Detail texture is, you can start to see a "grid" pattern where the Detail textures tile ^

OpenGL example: Screenshot_34 Any other renderer scales Detail textures correctly ^

dpjudas commented 1 year ago

I'm afraid I have no clue what is wrong here. I'm using exactly the same scaling code/math as for the other textures. When I look at the OpenGL renderer it uses the same math from what I can tell. Is this something that happens for all detail textures or is there a pattern to this?

BerserkerBG commented 1 year ago

I'm afraid I have no clue what is wrong here. I'm using exactly the same scaling code/math as for the other textures. When I look at the OpenGL renderer it uses the same math from what I can tell. Is this something that happens for all detail textures or is there a pattern to this?

It happens on every detail texture you see, I tested Epic's maps and it only happens on Vulkan. I've tested OpenGL, xOpenGL, D3D9 and D3D11. Does it not happen on your end at all, when you test this and compare?

dpjudas commented 1 year ago

It happens on my computer too. It is just that I have no idea why there should be a difference when I compare the code between OpenGL and Vulkan. I could "fix" it by applying an arbitrary additional scale factor of let's say 10, but I was hoping maybe there was a connection somewhere I am not seeing.

chris-mcc commented 1 year ago

It looks like maybe its a difference in a post processing filter?

dpjudas commented 1 year ago

Does this still happen in the 2.2 version?

BerserkerBG commented 1 year ago

Does this still happen in the 2.2 version?

Hey, great job on the new version! Turning True/False Detail Textures in Vulkan doesnt seem to do anything, I can't get them to show, I see no signs of the detail textures. Can someone check?