r/GraphicsProgramming • • 11h ago

[ Removed by moderator ]

/r/GraphicsProgramming/comments/1y4g3ku/removed_by_moderator/

[removed] — view removed post

3 Upvotes

6 comments sorted by

•

u/GraphicsProgramming-ModTeam 9h ago

Rule 4: The post must include a topic for discussion. A simple repost from another community is generally insufficient to satisfy this rule.

If you correct this afterward or believe this is in error, please contact the mod team.

2

u/Mediocre-Lecture8653 11h ago

Yo not trying to dunk on your Reshade, but i gota ask. Why you hackin at Reshade instead of making your own game engine? Just curious. Looks great

2

u/FuckMicahBellBro 10h ago

Thanks but I don't have the skillset for a whole engine and this project is made just because I liked Witcher 3 enough to do it. I'm not a game engine designer and game engines are not just made of rendering pipelins, I just really like 3D rendering.

1

u/sfaer 10h ago

Can you talk about your implementation or the challenges you faced, maybe the references you used?

0

u/FuckMicahBellBro 9h ago

Unfortunately as of now the development itself took a long time to be presentable. The add-on is very buggy and unreliable especially in DX12, and the GitHub documentation is an amalgam of AI generated and human written text. Furthermore, I've been thinking about a YouTube video for all of these. For now, the GitHub documentation is accurate enough for references even though it's AI generated but to summarize the process itself:

  • I wanted a screen space ray tracing substitute because it's badly implemented in most games
  • Came up with the idea of a "Cached GI" in reshade
  • After some time, with prior passing knowledge of Radiance Cascades, I decided to implement it
  • Debug, debug, debug
  • Found out even though Radiance Cascades are "noiseless", I had to reduce effect resolution to make it usable
  • Too many screen space artifacts and temporal disocclusion, so removed temporal passes entirely and found out it ran less stuttery but noise was a problem so I implemented a shitty temporal accumulation
  • Added many checks, tricks, etc to tighten the screen space artifacts and reduce them, and believe me, there are a lot of checks to prevent many kinds of artifacts both for radiance cascades and screen space limitations, the canvas and various depth checks are there for this purpose. The canvas has a limitated memory of light just enough to make camera turns smooth and let the GI settle (12 to 16 frames is enough in the last version). These are the main ways I made it closer to a world space implementation and made it playable and usable instead of just being a screenshot tool
  • Brightness was too much in tightly packed geometry, added contact shadowing and tonemapper conversion to combat it
  • Static noise became more of a problem as I reduced resolution from half to a third, especially after contact shadows were added and to be honest they're still noisy as hell in v2 even
  • Implemented SVGF denoiser but due to my lack of experience, I found out that it doesn't fix all kinds of noise
  • Implementated a lightweight reprojection system and adaptive ray counts to combat performance issues And many other stuff, including preventing UI projection as much as possible, implementation of visibility checks so that GI doesn't overbrighten tight crevices to begin with (it previously only subtracted from GI in those places, now it's used as the main shadowing mechanism and darkens wide spaces to skip using contact shadows) Overall, it took a long time to outline the pipeline and ideas to be ready for a v1 release. For v2, my approach was segmented into polishing and redoing the individual sections (prep pass, radiance cascades, temporal accumulation and reprojection via motion estimation, performance and bandwidth optimizations, improving geometry reconstruction, denoising, shadowing, etc) for a good, presentable release. In v1 codebase, the screenshots looked good enough, hence the uploaded screenshots being from v1.2 instead of v2. v2 now looks almost as clean as stills in motion. There were a lot of fixes in v2 too, previously the shader fed blurred and denoised data to several parts of the pipeline which made history reset and the "Boost new areas, save on stable ones" functionality from adaptive ray count system simply detected a lot of areas that were new, so it reduced fps instead of improving it. Shadows were also previously not properly denoised in v1 and v1 derived versions, and the contact pass itself introduced noise so the denoiser was largely ineffective. I had to make sure the shader can be calibrated into any game too, so every part of the pipeline that affects the look is customizable via around 170 sliders. My next plans are to make contact shadows work correctly (currently only escape visibility is used to produce large shadows, contacts still rely on in game AO, and when paired with "Dark surfaces block rays" slider, you can "tune out" the overbrightness) and improve tuning experience by baking as much of the unused, redundant, or unneeded sliders into the shader.

2

u/AutoModerator 11h ago

Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:

  • No showcases.
  • Disclose AI usage in post or project.
  • Present a topic to talk about, e.g. how something works.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.