Injecting a games HUD (Pixel shader) after effects

  • Posts: 13
4 years 4 months ago #1 by louiscarter88
Ok so I cave,

While I wait for a response from corsair on HUD exclusion, I'm going to throw this out there in case anyone can help.

I'm trying to figure out how to draw a particular PS hash from the game and inject it as the last draw in the pipeline, this is a feature of GeDoSaTo and it's the one thing I'm missing from ReShade. I'm sure this can somehow be done as a custom shader but I'm struggling cause I have very limited experience with coding.

I know we'll hear from a developer soon, I just thought I'd throw this out there.

Cheers.

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

  • Posts: 790
4 years 4 months ago #2 by Ganossa
A solution/workaround you think of would be more complex than that. A hud is usually not drawn all in only one draw. You also need to control when your binaries are hooked and that might be something useful before and after ReShade. Hooking before would mean ReShade is overlaying your draw anyway and hooking after would need you to identify not only the first hud ps but also the last.

If you still want to do that you need to build a library that fits the render API of your game (e.g. d3d9), do all the usual injector/hooking stuff and in addition to that detour all possible draw function of the API library. GeDoSaTo is dumping each draw on disk with the hash code of the previous ps (not sure about its retrieval in d3d9). While he is injecting his code after that hash comes up, you need to get all the UI draws on a rendertarget which you later use in your own shader which is applied AFTER ReShade as a texture to read from.
The following user(s) said Thank You: louiscarter88

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

  • Posts: 13
4 years 4 months ago #3 by louiscarter88
So the shader I use is actually a VSHash (vertex shader?) - I point GeDoSaTo to . . .
injectVSHash aa88523e

And the ALL the HUD elements are magically skipped.

So where would I start building this library? :s Sorry for coming off so clueless it's just alot of Gw2 players have been wanting this and I went through the tedious process of isolating that hash code the hard way. So thanks in advance.

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

  • Posts: 13
3 years 11 months ago #4 by louiscarter88
Going to BUMP this thread in light of the 2.0 update (I brought it up in the release thread but it got overlooked)

Any news on HUD exclusion / injection? Would love to hear from you guys (good work on 2.0 btw :) )

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