[GameDev] Making my game Reshade friendly?

  • mws432
  • Topic Author
More
5 years 1 month ago #1 by mws432 [GameDev] Making my game Reshade friendly? was created by mws432
I'm working on a game right now which I can't talk about, but one of my desires for this game is to make it modder-friendly in every single way.

So this is for Reshade authors: what can I do on my end to add as much function and simplicity as possible to users of Reshade?

Thanks for your time.
The following user(s) said Thank You: Wicked Sick, acknowledge, brazzjazz, AssassinsDecree

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

  • crosire
More
5 years 1 month ago #2 by crosire Replied by crosire on topic [GameDev] Making my game Reshade friendly?
There's really nothing special you need to do, as long as you use Direct3D 9/10/11 or OpenGL for rendering. If you want to make it easier for ReShade to find the depth buffer (so effects like DOF, MXAO, ... work), try to use only one depth texture during the majority of your scene rendering.
The following user(s) said Thank You: Wicked Sick, acknowledge, mws432

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

  • Wicked Sick
More
5 years 1 month ago #3 by Wicked Sick Replied by Wicked Sick on topic [GameDev] Making my game Reshade friendly?
Man, this is amazing. I hope your game does well. Make sure to post again when you can talk about it. Also, if you can, make the guys release the game on every platform and let the player, the buyer, decide where to buy... ahha o/
The following user(s) said Thank You: mws432

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

  • Martigen
More
5 years 1 month ago #4 by Martigen Replied by Martigen on topic [GameDev] Making my game Reshade friendly?
I would like to add -- though this isn't possible unless Crosire also adds a feature:

Make it possible to communicate to Reshade the UI overlay such that Reshade (or shaders) can ignore it. Simple case in point: not having Reshade SMAA/FXAA applied to UI elements but to everything else, though its general usage scenarios would be vast. Another example would be prevening MXAO showing through the overlay etc.

Gedosato had a method to intercept which shader was drawing a UI overlay and not apply effects to it. However, it required users to test when the overlay was rendered and pinpoint it in the pipeline. If there was a static way to allow Reshade to consistently pick up the UI overlay (at least for your game) that would be incredible.

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

  • brazzjazz
More
5 years 1 month ago - 5 years 1 month ago #5 by brazzjazz Replied by brazzjazz on topic [GameDev] Making my game Reshade friendly?
Thanks for dropping by, very much appreciated. I'd say as well, depth buffer access is often a problem, and keeping the HUD elements unaffected by ReShade would be great. Also the option to turn off any unwanted shaders / effects, such as bloom, film grain, chromatic aberration etc. that gamers might want to implement on their own with ReShade. This would save precious GPU power and make for a cleaner end result, because nobody needs two AOs or blooms or AAs on top of one another.
Last edit: 5 years 1 month ago by brazzjazz.
The following user(s) said Thank You: mws432

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

  • microdee
More
5 years 1 month ago #6 by microdee Replied by microdee on topic [GameDev] Making my game Reshade friendly?
I guess this is rather a topic for making ReShade into a middle-ware to be used explicitly by developers anywhere they want. It would be awesome though, most reshade default shaders can be really competitive there (especially Bloom and MXAO) ;)
The following user(s) said Thank You: mws432

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

  • brazzjazz
More
5 years 1 month ago #7 by brazzjazz Replied by brazzjazz on topic [GameDev] Making my game Reshade friendly?
Yes, MagicBloom is a blessing, throwing out the cheap bloom blobs in games of the middle 2000s and replacing them with a proper bloom.
The following user(s) said Thank You: mws432

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

  • mws432
  • Topic Author
More
5 years 1 month ago #8 by mws432 Replied by mws432 on topic [GameDev] Making my game Reshade friendly?
Thank you guys for all the suggestions. I'm not a big game exec unfortunately, I'm indie, but I do hope we set out certain mod-ability standards that the rest of the industry can/should copy.

@crosire, do I have your permission to have our installer automatically download the latest version of Reshade and install it for the game? I have a few ideas regarding this and would like Reshade to be a non-optional part of the game.

The game is indie, and currently our model is non-profit, but if we chose the profit route I would be more than happy to enter some sort of legal agreement/contract in order to rightfully share a percentage of profits. If we would go the for-profit route, it would be a long time from now.

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

  • crosire
More
5 years 1 month ago #9 by crosire Replied by crosire on topic [GameDev] Making my game Reshade friendly?
Sure, go ahead. If for whatever reason you're forced to distribute the ReShade binaries instead of downloading them during installation, you'll just have to add a copy of ReShade's license somewhere in your package as per github.com/crosire/reshade/blob/master/LICENSE.md .
The following user(s) said Thank You: mws432

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

  • mws432
  • Topic Author
More
5 years 1 month ago #10 by mws432 Replied by mws432 on topic [GameDev] Making my game Reshade friendly?
Great :) I have one final question and then I'm good-to-go: MXAO and other depth-based effects, is there anything I can do to make sure effects like these work better with effects such as fog? I love MXAO but I know when I was using it in Hitman 2 the other day I ended up turning it off because of the particle/fog/(transparency) issues. I know it's hard to work around such a thing. I'm thinking what might be done, is expose all shader variables to the end user so they can use them in whatever creative way they want.
I'd honestly just post the raw HLSL shaders in a directory with the game, but from experience I know a lot of people don't know how to properly mess with this stuff, so it could make our troubleshooting easier by forcing people to use Reshade in a way (I'm a modder as well, and I can tell you, the error logs/lack of error logs from shader issues, as well as horribly written shaders, can be a big headache).

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

  • crosire
More
5 years 1 month ago - 5 years 1 month ago #11 by crosire Replied by crosire on topic [GameDev] Making my game Reshade friendly?
ReShade currently always runs at the end of the frame, so after your game finished rendering everything (including fog etc.). For MXAO to not affect those ReShade would have to render at some point during the frame. There is no support for that currently and since there is no communication API between game and ReShade there is no way for the game to tell ReShade when to render right. I will need to implement both in case this becomes an issue.
Last edit: 5 years 1 month ago by crosire.
The following user(s) said Thank You: mws432

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.