Custom Graphic Enhancements?

New ideas and suggestions.
User avatar
Zeus
Site Admin
Posts: 1476
Joined: Sun Sep 21, 2008 2:51 pm
Contact:

Re: Custom Graphic Enhancements?

Postby Zeus » Wed Sep 23, 2015 4:31 pm

What do you mean you can't access depth buffer? Did you visualize it and it's completely black or something?

Is DOF effect applied after dropping ReShade 1.0.0 stock package into Bin directory and changing
#define USE_DEPTHOFFIELD 1 in ReShade\McFx.cfg?

piltrafus
Posts: 6
Joined: Wed Sep 24, 2014 2:09 am

Re: Custom Graphic Enhancements?

Postby piltrafus » Wed Sep 23, 2015 5:45 pm

Yes, you can visualize it and it's completely black. After dropping the reshade files into the game folder edit the BasicFX.cfg file and change "#define USE_DisplayDepth" to 1. The while in game pres F12 to turn depth visualization on and off.

I tested on Blade of Darkness at 1920x1440. I don't have other nglide games to test with.

P.S. The method you proposed to test the depth buffer access from reshade can be confusing. If you just edit "#define USE_DEPTHOFFIELD 1" in ReShade\McFx.cfg the default DOF effect in use is the option 4 or "MATSO". This shader will apply an even DOF effect to the full screen if it can't find a depth buffer. SO the full image gets defocused in equal measure but it may look like the effect is working when is actually not.

User avatar
Zeus
Site Admin
Posts: 1476
Joined: Sun Sep 21, 2008 2:51 pm
Contact:

Re: Custom Graphic Enhancements?

Postby Zeus » Wed Sep 23, 2015 6:41 pm

Did you enable logarithmic depth buffer in common.cfg?

piltrafus
Posts: 6
Joined: Wed Sep 24, 2014 2:09 am

Re: Custom Graphic Enhancements?

Postby piltrafus » Wed Sep 23, 2015 9:47 pm

I did not use the logarithmic depth before. However, I just tried and the results are the same. Instead of a depth map I'm getting a flat gray screen no matter what settings I'm using.

User avatar
Zeus
Site Admin
Posts: 1476
Joined: Sun Sep 21, 2008 2:51 pm
Contact:

Re: Custom Graphic Enhancements?

Postby Zeus » Wed Sep 23, 2015 11:11 pm

Then I have no idea what it might be.

This is what I'm getting with clean ReShade 1.0.0 package. Only two settings have been changed:
RFX_LogDepth 1 in Common.cfg and USE_DisplayDepth 1 in BasicFX.cfg.

nGlide 1.04 1920x1440, default settings in display driver panel.

First animation after selecting Sargon and skipping Tutorial:
BladeReShadeDepth.jpg
BladeReShadeDepth.jpg (58.49 KiB) Viewed 3547 times

So as you see, for me everything works properly.

piltrafus
Posts: 6
Joined: Wed Sep 24, 2014 2:09 am

Re: Custom Graphic Enhancements?

Postby piltrafus » Thu Sep 24, 2015 1:46 pm

Thanks for your testing. I got it working. Is easier to fix something when you are certain that it should be working.
First I didn't know that Logarithmic depth should be set to 1 on reshade for it to properly interpret the z buffer from nglide. That's too bad as I was using a custom set of shaders based on linear depth. I'll have to port the logarithmic depth code from the framework for them to work. My problem I guess.
My second mistake was to force/enable AA in the nvidia drivers for this particular game. It's a known issue that it prevents reshade from gabbing the z buffer info. My bad.

I hope my mistakes can serve others. Thanks again for looking into it.

User avatar
Zeus
Site Admin
Posts: 1476
Joined: Sun Sep 21, 2008 2:51 pm
Contact:

Re: Custom Graphic Enhancements?

Postby Zeus » Thu Sep 24, 2015 2:40 pm

No problem. I'm glad the issue has been resolved.

rkk
Posts: 23
Joined: Wed Apr 08, 2015 12:58 pm

Re: Custom Graphic Enhancements?

Postby rkk » Tue Feb 09, 2016 9:29 pm

Hi, are there games that are not using depth buffer? Or at least not for 3D?

I'm trying to make ReShade work with Ultim@te Race Pro and it seems that it just contains the 2D GUI elements in it.
I've attached a screenshot of the depth buffer I've got:
Ultim@te Race Pro 2016-02-04 18-41-36.png
Ultim@te Race Pro 2016-02-04 18-41-36.png (81.19 KiB) Viewed 3108 times


Of course I've set in Common.cfg:
#define RFX_LogDepth 1

Playing with RFX_Depth_z_near and RFX_Depth_z_far doesn't seem to change anything.

Any ideas? Is it possible that the game is just not generating a depth-buffer?

Greetings

User avatar
Zeus
Site Admin
Posts: 1476
Joined: Sun Sep 21, 2008 2:51 pm
Contact:

Re: Custom Graphic Enhancements?

Postby Zeus » Wed Feb 17, 2016 5:43 pm

rkk wrote:Playing with RFX_Depth_z_near and RFX_Depth_z_far doesn't seem to change anything.

They have been removed in 1.1.0 (and earlier used only for non-log depth). Both depth formulas are now hardcoded in reshade.fx.


Return to “Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest