3D Depth Map Based Stereoscopic Shader
- Sokol_Paxa
Indeed, I enabled what you wrote and was able to configure the display of the buffer, although it was not very easy)
I regulated The Talos Principle.
I also know that this problem exists in Halo: Combat Evolved Anniversary.
Please Log in or Create an account to join the conversation.
- kleem
Looking elsewhere, it seems that this game is supported. Is it perhaps problems with using vulkan api? I haven't tried directx yet, as I seem to get better performance using vulkan when playing the game normally.
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
I have to check this game when I have time seems like something is not working like it should.
Please Log in or Create an account to join the conversation.
- kleem
I went over to nexus mods and found a reshade/Depth 3D mod for RDR2. I replaced the shaders that were installed with reshade 4.7 with the ones from the mod. SuperDepth3D is working well now using the Vulkan api. The SuperDepth3D version from the mod is v2.0.8 while the one I had originally installed is 2.3.3.
It looks like there's been a change that breaks functionality in RDR2, at least for me.
Please Log in or Create an account to join the conversation.
- kleem
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
github.com/BlueSkyDefender/Depth3D/commi...df3123be13c80bd75603
Please Update the Shader and reset your shader setting to default since I did update the profile for this game.
Tell me if it works.
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
Please Log in or Create an account to join the conversation.
- kleem
The 3D is looking pretty good, but I do notice some distortion/blurring, mostly around the character and also around the weapon when I switch to 1st person. Are the profiles meant as a starting point or should it be pretty much there once applied? Also when the messages come up at the start like "disable ca/mb/dof/grain", does this mean I should be doing something or is this something the shader is doing? I'm still a newbie with all of this.
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
As for the warning. It meant for to tell you what to do since I can't control the settings of the games so you will have to do this.
The warning will sometimes tell you if you need to mod the game to get it working correctly. I did this so that people can know if they need to do this.
So it's there to help you. You can press F11 to display it on the screen if you didn't catch it at the start.
There is also a Read Help text. If this shows up then there is more information in the Game Help text file to guide you on how to mod the game.
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
kleem wrote: Yes, that fixes the letterbox problem. Thanks!
The 3D is looking pretty good, but I do notice some distortion/blurring, mostly around the character and also around the weapon when I switch to 1st person. Are the profiles meant as a starting point or should it be pretty much there once applied? Also when the messages come up at the start like "disable ca/mb/dof/grain", does this mean I should be doing something or is this something the shader is doing? I'm still a newbie with all of this.
So I redid the profile again.
Kleem, I hope this profile improves on the distortion on most weapons. Ya I didn't take in to account the first person view because I didn't think the game had one. I didn't play the game long enough to notice this. There are still some issues with some things you hold in your hands. But, mostly I think most weapons should be fine.
But, as the profiles from Overwatch.fxh header file should be set so you are mostly good to go. Just some times I don't know something about a game. So I make a mistake. This is why your feedback is good here. Thank you.
Again download the update and reset your setting try out the new profile.
github.com/BlueSkyDefender/Depth3D/commi...20d3538b328693ac6cee
Please Log in or Create an account to join the conversation.
- kleem
I'll try playing around with the games graphics settings to see if it that changes anything. I have things cranked fairly high and am still using the vulkan api. But really I'm impressed with your shader and I'm enjoying the 3D play immensely. I just wanted to provide some feedback on your update.
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
Please Log in or Create an account to join the conversation.
- kleem
ReShade.ini
[GENERAL]
ClockFormat=0
CurrentPresetPath=D:\Steam\steamapps\common\Red Dead Redemption 2\MyRDR2.ini
EffectSearchPaths=D:\Steam\steamapps\common\Red Dead Redemption 2\reshade-shaders\Shaders,D:\Steam\steamapps\common\Red Dead Redemption 2\reshade-shaders\Shaders\Depth3D
FPSPosition=1
NewVariableUI=0
NoDebugInfo=0
NoFontScaling=1
NoReloadOnInit=0
PerformanceMode=1
PreprocessorDefinitions=RESHADE_DEPTH_LINEARIZATION_FAR_PLANE=1000.0,RESHADE_DEPTH_INPUT_IS_UPSIDE_DOWN=0,RESHADE_DEPTH_INPUT_IS_LOGARITHMIC=0,RESHADE_DEPTH_INPUT_REVERSED=1
PresetTransitionDelay=1000
SaveWindowState=0
ScreenshotFormat=1
ScreenshotIncludePreset=0
ScreenshotPath=D:\Steam\steamapps\common\Red Dead Redemption 2
ScreenshotSaveBefore=0
ScreenshotSaveUI=0
ShowClock=0
ShowFPS=0
ShowFrameTime=0
ShowScreenshotMessage=1
TextureSearchPaths=D:\Steam\steamapps\common\Red Dead Redemption 2\reshade-shaders\Textures
TutorialProgress=4
[INPUT]
ForceShortcutModifiers=1
InputProcessing=2
KeyEffects=0,0,0,0
KeyMenu=46,0,0,0
KeyNextPreset=0,0,0,0
KeyPreviousPreset=0,0,0,0
KeyReload=0,0,0,0
KeyScreenshot=44,0,0,0
[STYLE]
Alpha=1.000000
ChildRounding=0.000000
ColFPSText=1.000000,1.000000,0.784314,1.000000
EditorFont=
EditorFontSize=13
EditorStyleIndex=0
Font=
FontSize=13
FPSScale=1.000000
FrameRounding=0.000000
GrabRounding=0.000000
PopupRounding=0.000000
ScrollbarRounding=0.000000
StyleIndex=2
TabRounding=4.000000
WindowRounding=0.000000
[VULKAN_BUFFER_DETECTION]
UseAspectRatioHeuristics=1
MyRDR2.ini
PreprocessorDefinitions=
Techniques=SuperDepth3D
TechniqueSorting=BackupBuffer,SplitScreen,RDR2,SuperDepth3D,SuperDepth3D_VR
[RDR2.fx]
DarkLevel=0.000000
FarDOF=1.000000
LightIntensity=20
Saturation=0.000000
[SuperDepth3D.fx]
Auto_Balance_Clamp=1.000000
Auto_Balance_Ex=2
Auto_Depth_Adjust=0.100000
Cursor_Lock=0
Cursor_SC=1,0
Cursor_Type=0
Custom_Sidebars=1
Depth_Detection=0
Depth_Edge_Mask=0.000000
Depth_Map=1
Depth_Map_Adjust=35.500000
Depth_Map_Flip=0
Depth_Map_View=0
Divergence=25.000000
Eye_Fade_Reduction_n_Power=0,0,0
Eye_Swap=0
FPSDFIO=0
Interlace_Anaglyph=0.500000,1.000000
Offset=0.000000
Performance_Mode=0
Perspective=0
Scaling_Support=0
Stereoscopic_Mode=0
View_Mode=0
Weapon_Adjust=0.000000,0.000000,0.000000
Weapon_ZPD_Boundary=0.000000
WP=0
WZPD=0.030000
WZPD_and_WND=0.030000,0.000000
ZPD=0.050000
ZPD_Boundary=1
ZPD_Boundary_n_Fade=0.500000,0.375000
ZPD_Separation=0.050000,0.118750
[SuperDepth3D_VR.fx]
Adjust_Vignette=0.000000
Auto_Balance_Ex=4
Auto_Depth_Adjust=0.100000
Barrel_Distortion=0
Blinders=0.000000
Cursor_Lock=0
Cursor_SC=1,0
Cursor_Type=0
Depth_Detection=1
Depth_Edge_Mask=0.000000
Depth_Map=1
Depth_Map_Adjust=50.000000
Depth_Map_Flip=0
Depth_Map_View=0
Divergence=25.000000
Eye_Fade_Reduction_n_Power=0,0,0
FoV=0.000000
FPSDFIO=0
IPD=0
Offset=0.000000
Performance_Mode=0
Polynomial_Colors_K1=0.220000,0.220000,0.220000
Polynomial_Colors_K2=0.240000,0.240000,0.240000
Saturation=0.000000
Sharpen_Power=0.000000
Theater_Mode=0
View_Mode=0
Weapon_Adjust=0.000000,0.000000,0.000000
Weapon_ZPD_Boundary=0.000000
WP=0
WZPD_and_WND=0.030000,0.000000
ZPD=0.050000
ZPD_Boundary=1
ZPD_Boundary_n_Fade=0.500000,0.375000
system.xml
<?xml version="1.0" encoding="UTF-8"?>
<rage__fwuiSystemSettingsCollection>
<version value="37" />
<configSource>kSettingsConfig_Auto</configSource>
<graphics>
<tessellation>kSettingLevel_Ultra</tessellation>
<shadowQuality>kSettingLevel_High</shadowQuality>
<farShadowQuality>kSettingLevel_High</farShadowQuality>
<reflectionQuality>kSettingLevel_Medium</reflectionQuality>
<mirrorQuality>kSettingLevel_Ultra</mirrorQuality>
<ssao>kSettingLevel_High</ssao>
<textureQuality>kSettingLevel_Ultra</textureQuality>
<particleQuality>kSettingLevel_Ultra</particleQuality>
<waterQuality>kSettingLevel_Custom</waterQuality>
<volumetricsQuality>kSettingLevel_Custom</volumetricsQuality>
<lightingQuality>kSettingLevel_Medium</lightingQuality>
<ambientLightingQuality>kSettingLevel_High</ambientLightingQuality>
<anisotropicFiltering value="4" />
<taa>kSettingLevel_Low</taa>
<fxaaEnabled value="true" />
<msaa value="0" />
<graphicsQualityPreset value="0.200000" />
<hdr value="false" />
<hdrIntensity value="100" />
<hdrPeakBrightness value="1000" />
<hdrFilmicMode value="true" />
<gamma value="15" />
<hdrSettingsMigrated value="true" />
</graphics>
<advancedGraphics>
<API>kSettingAPI_Vulkan</API>
<locked value="false" />
<asyncComputeEnabled value="false" />
<transferQueuesEnabled value="true" />
<shadowSoftShadows>kSettingLevel_High</shadowSoftShadows>
<motionBlur value="false" />
<motionBlurLimit value="16.000000" />
<particleLightingQuality>kSettingLevel_Medium</particleLightingQuality>
<waterReflectionSSR value="true" />
<waterRefractionQuality>kSettingLevel_Medium</waterRefractionQuality>
<waterReflectionQuality>kSettingLevel_High</waterReflectionQuality>
<waterSimulationQuality value="2" />
<waterLightingQuality>kSettingLevel_High</waterLightingQuality>
<furDisplayQuality>kSettingLevel_High</furDisplayQuality>
<maxTexUpgradesPerFrame value="5" />
<shadowGrassShadows>kSettingLevel_Medium</shadowGrassShadows>
<shadowParticleShadows value="true" />
<shadowLongShadows value="true" />
<directionalShadowsAlpha value="false" />
<worldHeightShadowQuality value="0.660000" />
<directionalScreenSpaceShadowQuality value="0.660000" />
<ambientMaskVolumesHighPrecision value="false" />
<scatteringVolumeQuality>kSettingLevel_Low</scatteringVolumeQuality>
<volumetricsRaymarchQuality>kSettingLevel_Medium</volumetricsRaymarchQuality>
<volumetricsLightingQuality>kSettingLevel_High</volumetricsLightingQuality>
<volumetricsRaymarchResolutionUnclamped value="true" />
<terrainShadowQuality>kSettingLevel_High</terrainShadowQuality>
<damageModelsDisabled value="false" />
<decalQuality>kSettingLevel_Ultra</decalQuality>
<ssaoFullScreenEnabled value="false" />
<ssaoType value="0" />
<ssdoSampleCount value="4" />
<ssdoUseDualRadii value="false" />
<ssdoResolution>kSettingLevel_Low</ssdoResolution>
<ssdoTAABlendEnabled value="true" />
<ssroSampleCount value="2" />
<snowGlints value="true" />
<POMQuality>kSettingLevel_High</POMQuality>
<probeRelightEveryFrame value="false" />
<scalingMode>kSettingScale_Mode1o1</scalingMode>
<reflectionMSAA value="1" />
<lodScale value="0.900000" />
<grassLod value="1.500000" />
<pedLodBias value="0.000000" />
<vehicleLodBias value="0.000000" />
<sharpenIntensity value="1.000000" />
<treeQuality>kSettingLevel_High</treeQuality>
<deepsurfaceQuality>kSettingLevel_Medium</deepsurfaceQuality>
<treeTessellationEnabled value="false" />
</advancedGraphics>
<video>
<adapterIndex value="0" />
<outputIndex value="0" />
<resolutionIndex value="14" />
<screenWidth value="1920" />
<screenHeight value="1080" />
<refreshRateIndex value="2" />
<refreshRateNumerator value="60" />
<refreshRateDenominator value="1" />
<windowed value="0" />
<vSync value="0" />
<tripleBuffered value="false" />
<pauseOnFocusLoss value="false" />
<constrainMousePointer value="false" />
</video>
<videoCardDescription>NVIDIA GeForce GTX 1060 6GB</videoCardDescription>
</rage__fwuiSystemSettingsCollection>
Please Log in or Create an account to join the conversation.
- WOWvxWim
This is an old thread, probably this is why the links are broken (3 years 7 months ago #720). However our office ditched an old philips 42-3d6w02/00 with WOWvx support and I took it home . It seems that you sorted out the DirectX support for this monitor using the reshade software. It would be great if I can get this monitor to work for some casual gaming!
I tried your Depth_tool.fx but it just shows the side-by-side 2d+depth map on the monitor, i figure it might be missing the header encoding bits?
Would you still have your old shader, mentioned above available?
"The WOWvx shader is in the Depth3D/Shaders/Alternative Shaders/Other Shaders/Wowvx/ Folder.
Get it from my Git hub here. github.com/BlueSkyDefender/Depth3D"
Another question you might be able to answer: "Are there any specific requirements on the PC video card for the output?"
If its not too much effort, i'd appreciate your help.
Please Log in or Create an account to join the conversation.
- WOWvxWim
Depth3D/Shaders/Alternative Shaders/Other Shaders/Normal Shaders/Other 3D Shaders/SuperDepth3D_Wowvx_FS.fx
Can't wait to get it working!
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
WOWvxWim It's been updated and added. Tell me if the signage code works. Please enjoy.
Please Log in or Create an account to join the conversation.
- WOWvxWim
I tried it, for OpenGL it works like a charm. I can see the blue pixel header if not in full screen or in the wrong game resolution.
For DirectX9 or 10/11/12 the pixel header doesn't seem to form. I also tried your old version, there it will show a black line of pixels but no blues. You should be able to reproduce this, since without 3D monitor you will see blue pixels in the upper left corner if it writes to the screen correctly (as with OpenGL). But still a very nice piece of code you wrote!
Something I noticed as well is that the games must be run at 1920x1080 resolution for the effect to work. But as soon as 3D is activated on the monitor the visible resolution drops to (I think) 960x540 because of how the monitor visualizes the 3D effect (also described in the Philips white paper). If i'm correct the actual input the monitor needs is a 1920x1080 frame with on the left the color image with only the odd pixel rows being drawn and the same for the depth image on the right.
It would save a huge amount of graphics power if the game could be rendered at 960x540 and this frame can be stretched to a 1920x1080 window. I managed to stretch the frame by modifying the following code, but then the window doesn't stretch with it. And I only see a quarter of the game screen,
texcoord.x = (id == 2) ? 2.0 : 0.0;
texcoord.y = (id == 1) ? 2.0 : 0.0;
position = float4(texcoord * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0);
Would something like that be possible? My feeling tells me that this might not be possible since the window size is set by the game run, and not reshade.
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
WOWvxWim wrote: Hi BlueSkyKnight,
I tried it, for OpenGL it works like a charm. I can see the blue pixel header if not in full screen or in the wrong game resolution.
For DirectX9 or 10/11/12 the pixel header doesn't seem to form. I also tried your old version, there it will show a black line of pixels but no blues. You should be able to reproduce this, since without 3D monitor you will see blue pixels in the upper left corner if it writes to the screen correctly (as with OpenGL). But still a very nice piece of code you wrote!
I will have to check what's going on here with the other APIs. I think I know what's going on I will have to add a switch to correct this problem.
WOWvxWim wrote: Something I noticed as well is that the games must be run at 1920x1080 resolution for the effect to work. But as soon as 3D is activated on the monitor the visible resolution drops to (I think) 960x540 because of how the monitor visualizes the 3D effect (also described in the Philips white paper). If i'm correct the actual input the monitor needs is a 1920x1080 frame with on the left the color image with only the odd pixel rows being drawn and the same for the depth image on the right.
Right now the Shader is running at spec. This is because I am following 2D + Depth format. This was also a part of the HDMI 1.4 because of WoWvx.
WOWvxWim wrote: It would save a huge amount of graphics power if the game could be rendered at 960x540 and this frame can be stretched to a 1920x1080 window. I managed to stretch the frame by modifying the following code, but then the window doesn't stretch with it. And I only see a quarter of the game screen,
texcoord.x = (id == 2) ? 2.0 : 0.0;
texcoord.y = (id == 1) ? 2.0 : 0.0;
position = float4(texcoord * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0);
Would something like that be possible? My feeling tells me that this might not be possible since the window size is set by the game run, and not reshade.
It can be done but you need to modify ReShade and the shader. But, since this modification can't happen without a change in ReShade's code. I suggest you run this shader 1:1. On the bright side 1080p not too hard to run today.
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
Here is the update WOWvxWim.
It should let you position the Content Code upper left and lower left. Will also default to Upper Left now. This was done because I could not remember where it should and also because sometimes the position.y gets flipped. So I rewrote that part of the code.
Please Log in or Create an account to join the conversation.