3D Depth Map Based Stereoscopic Shader
- BlueSkyKnight
- Topic Author
Too bad. It would have been nice if 3D vision loaded before reshade that way the depth buffer may be reconstructed.
docs.opencv.org/3.1.0/dd/d53/tutorial_py_depthmap.html
Please Log in or Create an account to join the conversation.
- vile80r
I don't own an Occulus or Vive or any VR device. I'm using an LG G3 inside a Shinecon VR HMD. My goal is not VR as much as it is untethered 3D and 2D gaming using my HMD which, I've already been able to achieve. Using Moonlight GameStreaming + Tridef I can stream games with no issues.
My issue is the inability to adjust things like lens compensation and field of view (viewer FOV not in-game FOV). I think this was the motivation behind Fortran's shaders. Using Reshaped to make these adjustments. I just can't seem to figure out how to make those adjustments. I'm hoping someone can help me with making adjustments. If there is a different shader more suited for what I'm trying to do please let me know.
I have downloaded the files referenced in the first post and installed them into the game, Brothers: A Tale of Two Sons. I picked this game because it was one I was playing recently and there is a Tridef profile that works. I've already did a test stream before adding Reshade shaders and everything streamed fine. Of course, it looked like I was looking through a fisheye lense because I have no method to correct this.
I also ran the game after installing Reshade. The view is definitely different now but at least it worked. I did see some yellow warnings as Reshade started but the game started and the view was very different. I need to tweak the settings to fit my setup. I don't know where to start.
All help is appreciated.
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
vile80r wrote: I'm very excited to find this thread. I found Fortran's thread on the MTBS forum first and it was exactly what I needed but I just couldn't get it figured out to work on Windows 10 x64. I've searched for something similar since then and landed on this thread.
I don't own an Occulus or Vive or any VR device. I'm using an LG G3 inside a Shinecon VR HMD. My goal is not VR as much as it is untethered 3D and 2D gaming using my HMD which, I've already been able to achieve. Using Moonlight GameStreaming + Tridef I can stream games with no issues.
My issue is the inability to adjust things like lens compensation and field of view (viewer FOV not in-game FOV). I think this was the motivation behind Fortran's shaders. Using Reshaped to make these adjustments. I just can't seem to figure out how to make those adjustments. I'm hoping someone can help me with making adjustments. If there is a different shader more suited for what I'm trying to do please let me know.
I have downloaded the files referenced in the first post and installed them into the game, Brothers: A Tale of Two Sons. I picked this game because it was one I was playing recently and there is a Tridef profile that works. I've already did a test stream before adding Reshade shaders and everything streamed fine. Of course, it looked like I was looking through a fisheye lense because I have no method to correct this.
I also ran the game after installing Reshade. The view is definitely different now but at least it worked. I did see some yellow warnings as Reshade started but the game started and the view was very different. I need to tweak the settings to fit my setup. I don't know where to start.
All help is appreciated.
What shader are you using? I will Be updating them all to 1.9.3 soon Just give me some time. As for the game Brothers: A Tale of Two Sons I will download that and test it out as well.
Please Log in or Create an account to join the conversation.
- Sh1nRa358
Also, can you add 'percent in front' and 'percent in back' from tridef?
Percent in front = greater value means the amount the 3D will try to pop out of the screen. Lesser value means keeping it pushed behind the screen (to prevent eye strain at edges of screen when a 3D object gets cut off by the boundaries of the screen).
Percent in back = pretty much increases or decreases depth of field 3D starting from 'percent in front' and back into the depths of the scene inside of your monitor in the game. Not to be confused with depth.
Please Log in or Create an account to join the conversation.
- nieda113
Can u pls tell me if it now works with oculus cv1 and sdk 10.11 ?
THX
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
Sh1nRa358 wrote: Is 'perspective' the same as 'convergence'?
Also, can you add 'percent in front' and 'percent in back' from tridef?
Percent in front = greater value means the amount the 3D will try to pop out of the screen. Lesser value means keeping it pushed behind the screen (to prevent eye strain at edges of screen when a 3D object gets cut off by the boundaries of the screen).
Percent in back = pretty much increases or decreases depth of field 3D starting from 'percent in front' and back into the depths of the scene inside of your monitor in the game. Not to be confused with depth.
Perspective Is the same as convergence. One is done by warping the image with the depth Buffer. The other, "Perspective," Is done by moving the color buffer. Ya they do the same thing in the end.
Depth max out a 20 in Power 3D
Percent in front max out at 50 in Power 3D
I had problems with the code. But, it's a simple equation based on Thales Theorem.
Convergence would change if I add adjustment for Zero Parallax Distance.
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
nieda113 wrote: @blue sky knight,, havent been here for a few weeks,, see developing it and getting better.
Can u pls tell me if it now works with oculus cv1 and sdk 10.11 ?
THX
Only way it works as of now If you use a app that projects the game on to a Virtual Big screen. But, Direct compatibility no Not yet. As of now Reshade Code is open source. That means some one can modify it to add better rift compatibility.
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
So here Is the code to allow pop pass the screen.
float ParallaxL = D * (1-C/DepthL);
float ParallaxR = D * (1-C/DepthR);
C is ZPD I set this to 0 because If I allow any thing pass zero. I get this lovely problem.
Ya you get pop. But, Missing information becomes a problem.
Please Log in or Create an account to join the conversation.
- x8009
Now that Reshade is opensource, what can you do with it ? would you be able to fix bugs and improve it ?
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
x8009 wrote: BlueSkyKnight,
Now that Reshade is opensource, what can you do with it ? would you be able to fix bugs and improve it ?
Don't know Let me finish the shaders I have first before I look in to that.
Please Log in or Create an account to join the conversation.
- x8009
BlueSkyKnight wrote:
x8009 wrote: BlueSkyKnight,
Now that Reshade is opensource, what can you do with it ? would you be able to fix bugs and improve it ?
Don't know Let me finish the shaders I have first before I look in to that.
nice mate !
This is the link to the new open source reshade github.com/crosire/reshade
I wish you can tell me if your GTA V is working, but not the steam version, the Rockstar Client, because for me Reshade 3.0.5 and 3.0.6 are not starting, only works is 3.0.4
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
x8009 wrote:
BlueSkyKnight wrote:
x8009 wrote: BlueSkyKnight,
Now that Reshade is opensource, what can you do with it ? would you be able to fix bugs and improve it ?
Don't know Let me finish the shaders I have first before I look in to that.
nice mate !
This is the link to the new open source reshade github.com/crosire/reshade
I wish you can tell me if your GTA V is working, but not the steam version, the Rockstar Client, because for me Reshade 3.0.5 and 3.0.6 are not starting, only works is 3.0.4
GTAV works on 3.0.6 if you rename the DLL to d3d9.dll
Got it to work that way.
Please Log in or Create an account to join the conversation.
- Sh1nRa358
BlueSkyKnight wrote:
Sh1nRa358 wrote: Is 'perspective' the same as 'convergence'?
Also, can you add 'percent in front' and 'percent in back' from tridef?
Percent in front = greater value means the amount the 3D will try to pop out of the screen. Lesser value means keeping it pushed behind the screen (to prevent eye strain at edges of screen when a 3D object gets cut off by the boundaries of the screen).
Percent in back = pretty much increases or decreases depth of field 3D starting from 'percent in front' and back into the depths of the scene inside of your monitor in the game. Not to be confused with depth.
Perspective Is the same as convergence. One is done by warping the image with the depth Buffer. The other, "Perspective," Is done by moving the color buffer. Ya they do the same thing in the end.
Depth max out a 20 in Power 3D
Percent in front max out at 50 in Power 3D
I had problems with the code. But, it's a simple equation based on Thales Theorem.
Convergence would change if I add adjustment for Zero Parallax Distance.
I usually like my 3D to stay inside the tv ( ) so I like my percent in front to be 0. To prevent blurry sides when a 3D object is halfway on the screen. Percent in front 0 relieves alot of that eyestrain during this time.
Please Log in or Create an account to join the conversation.
- x8009
BlueSkyKnight wrote:
x8009 wrote:
BlueSkyKnight wrote:
x8009 wrote: BlueSkyKnight,
Now that Reshade is opensource, what can you do with it ? would you be able to fix bugs and improve it ?
Don't know Let me finish the shaders I have first before I look in to that.
nice mate !
This is the link to the new open source reshade github.com/crosire/reshade
I wish you can tell me if your GTA V is working, but not the steam version, the Rockstar Client, because for me Reshade 3.0.5 and 3.0.6 are not starting, only works is 3.0.4
GTAV works on 3.0.6 if you rename the DLL to d3d9.dll
Got it to work that way.
Does it still runs the game in Directx 11 mode ? because I don't want to lose all the graphics detail in DX11 .
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
Sh1nRa358 wrote:
) so I like my percent in front to be 0. To prevent blurry sides when a 3D object is halfway on the screen. Percent in front 0 relieves alot of that eyestrain during this time.
I usually like my 3D to stay inside the tv (
I think I figure out what TriDef does in Power3D mode with Percent in front. It seem that the change the Depth Map Near your cam to be Lighter. I guess that why It's hit or miss some time with weapons in TriDef.
Ya I think it can be done. But, Depth Map code will have to change.
Please Log in or Create an account to join the conversation.
- x8009
BlueSkyKnight wrote:
x8009 wrote:
BlueSkyKnight wrote:
x8009 wrote:
BlueSkyKnight wrote:
x8009 wrote: BlueSkyKnight,
Now that Reshade is opensource, what can you do with it ? would you be able to fix bugs and improve it ?
Don't know Let me finish the shaders I have first before I look in to that.
DX 11 from the game will still work no need to lower your settings.
nice mate !
This is the link to the new open source reshade github.com/crosire/reshade
I wish you can tell me if your GTA V is working, but not the steam version, the Rockstar Client, because for me Reshade 3.0.5 and 3.0.6 are not starting, only works is 3.0.4
GTAV works on 3.0.6 if you rename the DLL to d3d9.dll
Got it to work that way.
Does it still runs the game in Directx 11 mode ? because I don't want to lose all the graphics detail in DX11 .
Hi mate, you didn't post the answer .. it's gone or something somewhere

He answered the question : It still runs DX11 and it now loaded. Thanks !
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
To be honest The same affect can be taken by adjusting your own custom depth map.
Not Sure if I'm going to keep it. Seems Redundant It's better to adjust your Depth Map your own self then to do it this way.
But, This is a good feature for my more automatic version of my shader. So I think I am going to add this to Depth3D. Later. But like I said if you want to try this it will be up for 24 hours then I will remove it. Since it's Redundant.
Please Log in or Create an account to join the conversation.
- Sh1nRa358

but either way, can't get the image to produce 3d at all. power 3d is tridef doesn't look right to me so I use the normal side by side without power 3D there. i'm trying metal gear rising (same game i'm testing out in tridef) and i cant get an image to be 3d at all

depth is at highest.
Please Log in or Create an account to join the conversation.
- BlueSkyKnight
- Topic Author
Sh1nRa358 wrote: don't see that option in reshade
but either way, can't get the image to produce 3d at all. power 3d is tridef doesn't look right to me so I use the normal side by side without power 3D there. i'm trying metal gear rising (same game i'm testing out in tridef) and i cant get an image to be 3d at all
depth is at highest.
Patch the game with MGROverride To get the right resolution for your screen. You can skip this if your max resolution is 1920x1080.
You will also need Borderless Gaming github.com/Codeusa/Borderless-Gaming/releases
Start the game and set it to window mode with the resolution and set MSAA to off.
Once that's done. Use the Borderless Gaming app the make it Borderless Full screen.
Once that's done then set your setting for Depth3D.
Here is a picture for 4k Side By Side 3D with depth map 28.
The reason you did get depth3D to work was because, The game didn't give access to the Depth Buffer in fullscreen mode for some reason.
Please Log in or Create an account to join the conversation.