Code Monkey home page Code Monkey logo

Comments (8)

nowrep avatar nowrep commented on August 22, 2024

Can you please share full vkbasalt config so I can test it myself? Also please upload logs from the game (only the lines with obs-vkcapture are important).

from obs-vkcapture.

DoomPenguin9 avatar DoomPenguin9 commented on August 22, 2024

Can you please share full vkbasalt config so I can test it myself? Also please upload logs from the game (only the lines with obs-vkcapture are important).

Here is the vkBasalt.conf with the LUT used:
vkBasalt.tar.gz

The part of the log that mentions vkcapture is this:

17:27:20.939: [linux-vkcapture] Creating texture from dmabuf 2560x1440 modifier:144115188488387331
17:27:20.939: [linux-vkcapture] [0] fd:9 stride:10240 offset:0
17:27:20.939: [linux-vkcapture] [1] fd:10 stride:2560 offset:15728640
17:28:47.004: [linux-vkcapture] Creating texture from dmabuf 2560x1440 modifier:144115188488387331
17:28:47.004: [linux-vkcapture] [0] fd:9 stride:10240 offset:0
17:28:47.004: [linux-vkcapture] [1] fd:10 stride:2560 offset:15728640
17:29:09.796: [linux-vkcapture] Creating texture from dmabuf 2560x1440 modifier:144115188488387331
17:29:09.796: [linux-vkcapture] [0] fd:11 stride:10240 offset:0
17:29:09.796: [linux-vkcapture] [1] fd:38 stride:2560 offset:15728640
17:30:11.301: [linux-vkcapture] Creating texture from dmabuf 2560x1440 modifier:144115188488387331
17:30:11.301: [linux-vkcapture] [0] fd:9 stride:10240 offset:0
17:30:11.301: [linux-vkcapture] [1] fd:10 stride:2560 offset:15728640

from obs-vkcapture.

nowrep avatar nowrep commented on August 22, 2024

I've tried your vkbasalt config, but it "works" fine (as in, it is exactly the same dark image on screen and in OBS).
Does it happen in any game with this config? Maybe can you also try just with vkcube?

from obs-vkcapture.

DoomPenguin9 avatar DoomPenguin9 commented on August 22, 2024

I've tried your vkbasalt config, but it "works" fine (as in, it is exactly the same dark image on screen and in OBS). Does it happen in any game with this config? Maybe can you also try just with vkcube?
I think the image on your screen is dark because there are some extra settings in the .fx files I forgot to add to my original

comment, sorry about that. The settings are:
in Curves.fx you need :
ui_tooltip = "The amount of contrast you want.";

= 0.05;

in FakeHDR.fx you need

uniform float HDRPower < __UNIFORM_SLIDER_FLOAT1
ui_min = 0.0; ui_max = 8.0;
ui_label = "Power";

= 1.20;
uniform float radius1 < __UNIFORM_SLIDER_FLOAT1
ui_min = 0.0; ui_max = 8.0;
ui_label = "Radius 1";
= 0.793;
uniform float radius2 < __UNIFORM_SLIDER_FLOAT1
ui_min = 0.0; ui_max = 8.0;
ui_label = "Radius 2";
ui_tooltip = "Raising this seems to make the effect stronger and also brighter.";
= 0.90;

You just need to change the numbers in the .fx files.

The issue described above happens in every game with this preset, yes. Also, the Black Ops 2(first image in my original comment) image was taken with no vkBasalt, so there are colour issues in games with no vkBasalt. So far, Black Ops 2 is the only game I've seen that has this issue and if I see this happening in other games, I'll report them here.

EDIT: I tried vkcube with that preset and the result is the same as in DOOM Eternal: the vkcapture is way darker than what is in the actual game.

from obs-vkcapture.

nowrep avatar nowrep commented on August 22, 2024

I've changed the shader values and the image is not dark anymore, but of course it made no difference. The image is identical both on screen and in OBS (preview and in actual capture).

Can you please show terminal output of vkcube (not output from OBS)?

I can't test it with Black Ops 2 because I don't own the game.

from obs-vkcapture.

DoomPenguin9 avatar DoomPenguin9 commented on August 22, 2024

I've changed the shader values and the image is not dark anymore, but of course it made no difference. The image is identical both on screen and in OBS (preview and in actual capture).

Can you please show terminal output of vkcube (not output from OBS)?

I can't test it with Black Ops 2 because I don't own the game.

Running VK_INSTANCE_LAYERS=VK_LAYER_vkbasalt:VK_LAYER_OBS_vkcapture_64 ENABLE_VKBASALT=1 VKBASALT_CONFIG_FILE=/home/penguin/.steam/steam/steamapps/common/DOOMEternal/vkBasalt.conf obs-vkcapture vkcube to start vkcube with vkBasalt and vkcapture gives the following output:

[obs-vkcapture] Init Vulkan 1.1.1
vkBasalt info: config file: /home/penguin/.steam/steam/steamapps/common/DOOMEternal/vkBasalt.conf
vkBasalt info: effects = colorfulness:hdr:contrast:lut
vkBasalt info: lutFile = /home/penguin/.steam/steam/steamapps/common/DOOMEternal/lut.png
vkBasalt info: colorfulness = /home/penguin/reshade-shaders-master/Shaders/Colourfulness.fx
vkBasalt info: hdr = /home/penguin/reshade-shaders-master/Shaders/FakeHDR.fx
vkBasalt info: contrast = /home/penguin/reshade-shaders-master/Shaders/Curves.fx
vkBasalt info: reshadeTexturePath = /home/penguin/reshade-shaders-master/Textures
vkBasalt info: reshadeIncludePath = /home/penguin/reshade-shaders-master/Shaders
Selected GPU 0: AMD RADV NAVY_FLOUNDER, type: 2
[obs-vkcapture] Injecting VK_KHR_external_memory_fd extension
[obs-vkcapture] Injecting VK_EXT_image_drm_format_modifier extension
[obs-vkcapture] Texture VK_FORMAT_B8G8R8A8_UNORM 1266x1385
[obs-vkcapture] ------------------ vulkan capture started ------------------
[obs-vkcapture] ------------------- vulkan capture freed -------------------

The result is this
2022-01-17_20-25

from obs-vkcapture.

DoomPenguin9 avatar DoomPenguin9 commented on August 22, 2024

Ok, I figured it out. In the scene I have set up for recording, I had the option "allow transparency" enabled in the game capture source. It appears that this messes with 100% of games that use I vkBasalt in, and a number of games that I don't use vkBasalt in. Disabling that fixed the issue.

from obs-vkcapture.

nowrep avatar nowrep commented on August 22, 2024

Alright, that makes sense.

from obs-vkcapture.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.