UI By-Pass

  • ValerBOSS
  • Topic Author
More
9 years 1 week ago #1 by ValerBOSS UI By-Pass was created by ValerBOSS
Hello everybody!
Sometimes it's really inconvenient when you set up your shaders and they process the whole screen including the UI. Is there any possibility to create a shader or something that will recognise the UI elements and by-pass them from processing?
I saw this option in LuciferHawk's GemFX 1.0.8 but since it 's only for R2:TW it became interesting for me how it works and why it doesn't work with other games.

Please Log in or Create an account to join the conversation.

  • jmp909
More
9 years 1 week ago - 8 years 5 months ago #2 by jmp909 Replied by jmp909 on topic UI By-Pass
I'm not sure about GemFX and TW, but with Reshade currently you can use a black & white mask png .. see this link reshade.me/forum/shader-presentation/161...hread?start=240#2456

that's not always ideal because the HUD on some games can vary

I thought it might be possible to use the depth buffer, but Crosire already explained why that won't work here
reshade.me/forum/general-discussion/368-...sion-via-depthbuffer

GeDoSaTo has a more complex method for isolating the HUD...
www.pcgamer.com/how-to-create-sweetfx-st...h-durantes-gedosato/

maybe one day a similar process might get included into Reshade, as Durante opened up the source
github.com/PeterTh/gedosato/tree/master/source

but that's up to Crosire.
Last edit: 8 years 5 months ago by crosire. Reason: Fixed link
The following user(s) said Thank You: ValerBOSS

Please Log in or Create an account to join the conversation.

  • Kleio420
More
9 years 1 week ago #3 by Kleio420 Replied by Kleio420 on topic UI By-Pass
the way gedosato does it would work for more games if not all its just hard on the end user to get it working as there is no generic way really to do it unless crosire came up with a way, you have to know when the UI textures are loaded in the chain and be able to inject reshade before then so even at that if the game has random menu pop ups i dont see how its going to detect those and this turns into a per game deal where it needs serious work on it and thats not the point of reshade they want it simple for end users to be able to just flip settings
The following user(s) said Thank You: crosire

Please Log in or Create an account to join the conversation.

  • Martigen
More
9 years 1 week ago #4 by Martigen Replied by Martigen on topic UI By-Pass

Kleio420 wrote: the way gedosato does it would work for more games if not all its just hard on the end user to get it working as there is no generic way really to do it unless crosire came up with a way, you have to know when the UI textures are loaded in the chain and be able to inject reshade before then so even at that if the game has random menu pop ups i dont see how its going to detect those and this turns into a per game deal where it needs serious work on it and thats not the point of reshade they want it simple for end users to be able to just flip settings


This is a request we'll hear again and again for the life of the injector, as it's the logical next step. In that regard, it's not a bad thing to ask :)

I could be wrong but with Gedosato's method as long as the GUI in the game is generated at the same stage each frame, once you've found it then I would presume even new UI elements like pop-ups would be covered too.

The other thing to consider is that while the Gedosato method is time-consuming to setup for a game, once it's done those injectPS hashes remain the same. I.e, if one user isolates the UI they can simply upload the result and everyone else can use it without going through the work. Early adopters of a game will do this naturally, just like we have shader presets on sfxthelazy.net :).

Hopefully it's on Crosire's to-do, though I fully appreciate if it's a down-the-track kinda thing.

Please Log in or Create an account to join the conversation.

  • Kleio420
More
9 years 1 week ago #5 by Kleio420 Replied by Kleio420 on topic UI By-Pass

Martigen wrote:

Kleio420 wrote: the way gedosato does it would work for more games if not all its just hard on the end user to get it working as there is no generic way really to do it unless crosire came up with a way, you have to know when the UI textures are loaded in the chain and be able to inject reshade before then so even at that if the game has random menu pop ups i dont see how its going to detect those and this turns into a per game deal where it needs serious work on it and thats not the point of reshade they want it simple for end users to be able to just flip settings


This is a request we'll hear again and again for the life of the injector, as it's the logical next step. In that regard, it's not a bad thing to ask :)

I could be wrong but with Gedosato's method as long as the GUI in the game is generated at the same stage each frame, once you've found it then I would presume even new UI elements like pop-ups would be covered too.

The other thing to consider is that while the Gedosato method is time-consuming to setup for a game, once it's done those injectPS hashes remain the same. I.e, if one user isolates the UI they can simply upload the result and everyone else can use it without going through the work. Early adopters of a game will do this naturally, just like we have shader presets on sfxthelazy.net :).

Hopefully it's on Crosire's to-do, though I fully appreciate if it's a down-the-track kinda thing.

by far imo its the most important thing to figure out trying to do a generic shader while your whole screen sets something off gets annoying you almost always need depth and some way to apply post before the ui so it doesnt get hit by it or detected as something its not.Most of the effects imo look like crap without having depth data to determine whether something should have an effect applied on it if something would be blocking the effect when i heard they were working on finding a solution for depth buffer in sweet fx i was super happy but so far most games i would ever want to use reshade in are online and really most games now days have something online about them

Please Log in or Create an account to join the conversation.

  • ValerBOSS
  • Topic Author
More
9 years 1 week ago - 9 years 1 week ago #6 by ValerBOSS Replied by ValerBOSS on topic UI By-Pass
Thank you very much for the informative response guys!
I hope crosire will take note of the GeDoSaTo's ideas some time, it would be a really great feature.
Also I think it's a good idea to cooperate with GeDoSaTo's creator to implement this in ReShade like you did with creators of shaderpacks.
Last edit: 9 years 1 week ago by ValerBOSS.

Please Log in or Create an account to join the conversation.

  • crosire
More
9 years 1 week ago #7 by crosire Replied by crosire on topic UI By-Pass

Please Log in or Create an account to join the conversation.

  • Fruitrocket
More
9 years 6 days ago #8 by Fruitrocket Replied by Fruitrocket on topic UI By-Pass
From what I understand, it's a matter of finding out which frames within the stack render the UI?

www.pcgamer.com/how-to-create-sweetfx-st...h-durantes-gedosato/

So, I suppose what we really need is more diagnostic tools?

Please Log in or Create an account to join the conversation.

  • Kleio420
More
9 years 6 days ago #9 by Kleio420 Replied by Kleio420 on topic UI By-Pass

Fruitrocket wrote: From what I understand, it's a matter of finding out which frames within the stack render the UI?

www.pcgamer.com/how-to-create-sweetfx-st...h-durantes-gedosato/

So, I suppose what we really need is more diagnostic tools?

he is aware of this and the link he posted states this he is looking for a more simple way so the end user has little to no configuring needed to get a UI with no effects applied on it

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.