Dark Souls 2 modded: Durante's GeDoSaTo enables downsampling, texture modding
Let's do the interceptor again: introducing GeDoSaTo
Dark Souls 2 is a good PC port, and the tweaks we discussed before are nice, but they have some significant shortcomings. HBAO+, while of terrific quality, is currently buggy and can only be used by NVIDIA users. SGSSAA improves image quality tremendously, but has an equally tremendous performance impact. Downsampling is limited to monitor hardware. SweetFX allows for a much more dynamic visual experience, but also negatively affects the HUD and UI screens.
We can do better than that.
Given the options outlined above, the properties of Dark Souls 2, and my previous experience, I chose the library interception approach to modding. I have been working (in secret, until now) on a new, generic tool for just that purpose since the beginning of 2014— it is called GeDoSaTo . In short, it allows for game downsampling without any hardware limitations, and texture modification in any game which uses the default texture loading mechanisms provided by DirectX. It works “out of the box” with Dark Souls 2, allowing for the ridiculous resolution you have seen earlier, without any hardware or driver dependency—beyond performance of course:
As of today, you can download an early build of GeDoSaTo. It isn't finished—I'll continue to work on new features and stamp out bugs—but you can download it today and use it in Dark Souls 2. Downsampling and texture modification should also work in many other DirectX 9 games, but no guarantees for that.
You can download GeDoSaTo right here.
Now here's what it can do in addition to downsampling.
Texture modding
The texture dumping and modding facilities in GeDoSaTo function similarly to the ones included in DSfix, and an initial test has shown that everything works as expected in Dark Souls 2:
The biggest gaming news, reviews and hardware deals
Keep up to date with the most important stories and the best deals, as picked by the PC Gamer team.
I'm looking forward to some talented artists trying their hand at texture modifications! However, they generally shouldn't be as impactful as they were in Dark Souls 1, given the much higher average texture resolution in the PC version of its sequel.
One interesting thing I found out while texture dumping is that some of the game's armor textures sport a massive 2048x4096 resolution, easily on par with everything I've seen in any PC title before. Certainly not a texture you would create for a game primarily targeted at running in 1280x720. Another fact I learned during the development of this mod is that high quality shadows use a 4096x4096 render target. Pretty good!
Rendering effects
While downsampling and texture modding are basic GeDoSaTo features applicable to every game, I've used the generic basis provided by GeDoSaTo to implement further effects, which are specific to Dark Souls 2. These modifications are more stable than in any other mod I have created so far. When we discussed library call interception I noted that the largest challenge lies in finding the right time to act.
DSfix used a complex and error prone mechanism based on per-frame counters and cryptic event sequences . Conversely, the tentatively titled “GeDoSaTo: DS2 edition” uses new tools I developed to reliably recognize the shaders used by game, and simply applies its effects instead of the original Dark Souls 2 AA pass. Which, by the way, I can now beyond any reasonable doubt confirm to be FXAA, looking at the shader code.
An additional advantage other than quality of performing these effects in a mod is configurability: all the shader files and parameters are available in plain text files, and can be tweaked to everyone's individual preferences. Note that for the screenshots in the following sections, I have chosen extremely strong versions of each, in order to better show off the effects. Rest assured that less extreme versions are just a small configuration change away.
Ambient occlusion
As shown in the earlier tweaking guide, the in-game ambient occlusion effect is very blurry, temporally unstable, and generally low quality. A more in-depth examination of the game's rendering has uncovered why this is the case: it is rendered at 1/16th (!) of the display resolution, then upscaled to ¼, blurred twice and finally added to the shadow map. This means that ambient occlusion for e.g. a 1080p target resolution is rendered at 480x270. Such a drastic performance-saving measure may be required on 7-year-old consoles, but most modern gaming PCs can deal with a higher quality effect.
The animated comparison above (full-size screenshots: No AO , VSSAO2 ) and here shows the VSSAO2 method of ambient occlusion I ported from DSfix (with minor improvements). It is no HBAO+ in quality, but it is higher resolution, more temporally stable, and less “2D drop shadow” like than the default effect included in the game, and it works on all GPUs. And of course, it does not suffer from the UI rendering issue currently affecting HBAO+ in DS2.
Further effects may be implemented and tweaked by simply modifying the shader effect—the original VSSAO2 was in fact contributed to Dark Souls 1 by Asmodean, a third party modder! Note that the performance impact of VSSAO2 is moderate, though of course larger than the in-game ambient occlusion. It amounts to around 11 percentage points of additional GPU usage on my system—a Geforce 770 rendering at 2560x1440.
Post-processing and anti-aliasing
SweetFX post-processing can greatly enhance the mood and contrast in many areas in Dark Souls 2, but it also negatively affects the UI. To solve this issue, I have implemented the subset of SweetFX filters used in my Dark Souls 2 profile in GeDoSaTo, where they can be applied before the UI is rendered. Furthermore, to replace the in-game anti-aliasing with a relatively low-cost—but superior—alternative, I have included SMAA. At “Ultra” settings the latter consumes about 10 percentage points of GPU performance on my system, while the full image post-processing requires 9.
Above you can see a comparison of vanilla Dark Souls 2 and all of GeDoSaTo's effects enabled at their strongest settings. Full-size screenshots: Default , Effects on (strongest settings) .
Bokeh depth of field
Dark Souls 2's integrated depth of field effect, while quite high quality, is also far more subtle than the DoF in the first Dark Souls. Some have speculated that this is part of the reason why graphical level design issues, such as low-quality geometry in the far distance or endlessly repeating textures, are more noticeable in DS2 than its predecessor. To alleviate this issue—and, honestly, because I think Bokeh effects look incredibly neat—I've integrated an extremely high-quality Circular Bokeh DoF filter adapted from OBGE .
The image above shows the effect, configured to be far stronger than you'd probably want to use for gaming (it also uses VSSAO2, SMAA and my post-processing). Another reason not to use it are its ridiculous performance requirements, which sit around 30 (!) percentage points on my configuration, or roughly as much as all other effects and AA combined. I do plan to add another DoF implementation which is slightly less amazing in quality, but also much less ridiculous performance-wise, in the future. For now, think of it more as a special treat for Bokeh aficionados.
Development blooper gallery
For your amusement, I'd like to share three images generated during the development of GeDoSaTo: DS2 Edition.
Conclusion
Using a library call interceptor approach, it is possible to provide arbitrary downsampling, a facility for future texture modding, and higher-quality highly configurable alternatives to some of the in-game effects. Additionally, post-processing can be performed without affecting the UI rendering, and other convenience features, such as taking HUDless screenshots even when a HUD is present in the game, might be possible in the future. You can do all of the above with GeDoSaTo and Dark Souls 2.
I hope you enjoyed this series of articles, and if you want to read more technical stuff from time to time feel free to follow my (sporadically updated) blog . As for me, I'm looking forward to truly diving into Dark Souls 2's gameplay for a while, instead of focusing on analyzing, tweaking and modifying its technical aspects.
Elden Ring streamer completes a level 1 playthrough beating the game's 165 bosses—on NG+7, a difficulty she had to finish the game 7 times over just to reach
FromSoftware drops another story trailer for Elden Ring's Shadow of the Erdtree DLC—giving us a glimpse at the fiery rampage that made Malenia's golden boy flee the Lands Between