Hooking into game's backbuffer

  • NoMansReshade
  • Topic Author
More
7 years 1 month ago - 7 years 1 month ago #1 by NoMansReshade Hooking into game's backbuffer was created by NoMansReshade
This is probably a dumb question, so here we go: Would it be possible to modify the way reshade computes it's effects to instead of creating it's own backbuffer that it later overlays on top of the game, inject/override the game's internal backbuffer? (which would require modification on a per-game basis)
Understanding that overriding the game's internal backbuffer could have some SERIOUS negative effects, would it be possible to perhaps hook into that backbuffer and copy-paste the information that the game's backbuffer outputs? (possibly before or after tonemapping, which again, would require modification on a per-game basis) The reason I ask is because in doing this, we could possibly create render flags (for ex. tell ambient occlusion to not render behind particle effects, or get HDR data.) Or am I mistaking how we would go about doing that completely?

Also, I am well aware that Reshade was built to be universally compatible with practically all games, unlike ENB Series, and I want it to stay that way. However, I would also like to have an open-source alternative to ENB Series, and wondered if this would even be possible, and how much effort it would take to do so.

P.S to Borris: Where be that source, yo?

Please and thank you,
NoMansReshade.
Last edit: 7 years 1 month ago by NoMansReshade.

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

  • crosire
More
7 years 1 month ago #2 by crosire Replied by crosire on topic Hooking into game's backbuffer
This is exactly what ReShade does. It replaces the games depth and backbuffers. No, you cannot magically get HDR this way. Games already compress the color range in their own shaders.
The following user(s) said Thank You: NoMansReshade

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

  • NoMansReshade
  • Topic Author
More
7 years 1 month ago - 7 years 1 month ago #3 by NoMansReshade Replied by NoMansReshade on topic Hooking into game's backbuffer
Thank you for such a quick answer!

My understanding is that ENB is an injector, because of this, could we theoretically do it the "Hacky" way and just intercept the runtime shader buffers and modify parameters, such as modifying the color of the sky? Because my understanding is that some games give lots of access to foreign binaries when named correctly. I am only asking before I waste large amounts of time trying to do this :D

Also, correct me if I'm wrong; But it will probably be super duper complicated to do this. Keep in mind that I have a reverse engineering background.

Please and thank you,
NoMansReshade.
Last edit: 7 years 1 month ago by NoMansReshade.

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

  • crosire
More
7 years 1 month ago #4 by crosire Replied by crosire on topic Hooking into game's backbuffer
You can do anything. But ReShade was written to work everywhere, so it doesn't and cannot do everything.

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

  • NoMansReshade
  • Topic Author
More
7 years 1 month ago #5 by NoMansReshade Replied by NoMansReshade on topic Hooking into game's backbuffer
Fair enough. Thank you so much for your answers!
The following user(s) said Thank You: jas01

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.