Hi,
some of you may have noticed these "new" animated 3D-gifs, showing some short scene from well known movies.
There you get a feeling for the depths of a picture without the need of 3D hardware (special monitor, shutter glasses or polarisation filter glasses or red/green glasses)
You find 5 of these pictures here:
http://www.pcgameshardware.de/3D-Thema- ... id=2144693
I am not sure, but might this be a technique, that may ad some 3D feeling to every game on every hardware?
For a FullHD (1920x1080) screen, put 4 vertical and 2 horizontal lines into the picture and everything with a z-coordinate smaller than x will pass these lines in front, everything with a z value greater than x will pass behind these lines.
You need a lot and a very dynamic, fast focus changing death of field for this and enough white (or black) lines (higher resolution, more lines) to create this effect and I have seen some gifs already, where these lines are smaller (not as wide in pixels), so they are less annoying.
Is this possible as a "simple" post process? Could it be added to a modification like ENB?
Possible 3D-effect for every hardware?
- Author
- Message
-
Offline
- *blah-blah-blah maniac*
- Posts: 17559
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
Re: Possible 3D-effect for every hardware?
This is silly. Why not to render everything with wireframe mask then?
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
-
Offline
- *sensei*
- Posts: 288
- Joined: 24 Mar 2012, 16:21
Re: Possible 3D-effect for every hardware?
Why silly?
And I am sure, you won't get the same effect with wireframe or if, it would look even more annoying than having "just" 2 white or black lines in the scene.
About your pics:
Second creates a nice 3D effect, but first one?...no way, not for me.
And I am sure, you won't get the same effect with wireframe or if, it would look even more annoying than having "just" 2 white or black lines in the scene.
About your pics:
Second creates a nice 3D effect, but first one?...no way, not for me.
-
Offline
- *blah-blah-blah maniac*
- Posts: 659
- Joined: 19 Jul 2013, 13:04
Re: Possible 3D-effect for every hardware?
this is pretty stupid. You want 3D get a 3D screen with glasses or 3d head gear like Oculus rift.
_________________
W10*I7 6700K*MSI Z170A MPower Gaming Titanium*2x Titan X Pascal*32GB 3600mhz DDR4* 3x 512GB Samsung Pro SSD*ASUS ROG Swift PG348Q
W10*I7 6700K*MSI Z170A MPower Gaming Titanium*2x Titan X Pascal*32GB 3600mhz DDR4* 3x 512GB Samsung Pro SSD*ASUS ROG Swift PG348Q
ENBSeries wrote: Welcome to AMD world! Don't complains to me, you bought it, have a nice time.
-
Offline
- *sensei*
- Posts: 446
- Joined: 17 Apr 2014, 22:12
- Location: Schweden
Re: Possible 3D-effect for every hardware?
^This is making me dizzy. So wierd pic.ENBSeries wrote:
_________________
| i5 3350p @3.1 | 16 GB RAM | GTX1060 | Skyrim on SSD |
My Flickr
My Soundcloud
CGI ENB
| i5 3350p @3.1 | 16 GB RAM | GTX1060 | Skyrim on SSD |
My Flickr
My Soundcloud
CGI ENB
-
Offline
- *master*
- Posts: 229
- Joined: 21 Feb 2013, 03:21
- Location: Los Angeles, CA
Re: Possible 3D-effect for every hardware?
Maybe silly, but it would be interesting to try it in a shader. I think it could be implemented pretty easily with the depth information in enbeffectprepass.fx no?
_________________
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7
-
Offline
- *master*
- Posts: 229
- Joined: 21 Feb 2013, 03:21
- Location: Los Angeles, CA
Re: Possible 3D-effect for every hardware?
How silly is this?
Hahaha, no more 3d glasses needed!
To get this effect, I added this code to the end of the post pass function in enbbloom.fx:
Also add the scene depth sampler with the others if you don't already have it:
Enjoy your new Skyrim experience.
Thanks for the silly idea Insomnia!!
Thanks for the depth in the bloom shader Boris (and Prod80)
Hahaha, no more 3d glasses needed!
To get this effect, I added this code to the end of the post pass function in enbbloom.fx:
Code: Select all
float4 PS_BloomPostPass(VS_OUTPUT_POST In) : COLOR
{
...
// Adds white bars and border
float lw = 0.01; // line width
float screenEdgeX = 0.05;
float screenEdgeY = 0.05;
float barDepth = 0.75;
float scenedepth=tex2D(SamplerDepth, In.txcoord0.xy).x;
if (
(In.txcoord0.x < screenEdgeX || In.txcoord0.x > 1.0 - screenEdgeX) || // screen edge x
(In.txcoord0.y < screenEdgeY || In.txcoord0.y > 1.0 - screenEdgeY) || // screen edge y
(In.txcoord0.x > 0.33 - lw && In.txcoord0.x < 0.33 + lw) || // Bar 1
(In.txcoord0.x > 0.66 - lw && In.txcoord0.x < 0.66 + lw) // Bar 2
){
if (scenedepth > barDepth)
bloom = float4(1.0, 1.0, 1.0, 1.0);
}
return bloom;
}
Code: Select all
texture2D texDepth;
sampler2D SamplerDepth = sampler_state
{
Texture = <texDepth>;
MinFilter = POInT;
MagFilter = POInT;
MipFilter = NONE;
AddressU = Clamp;
AddressV = Clamp;
SRGBTexture=FALSE;
MaxMipLevel=0;
MipMapLodBias=0;
};
Enjoy your new Skyrim experience.
Thanks for the silly idea Insomnia!!
Thanks for the depth in the bloom shader Boris (and Prod80)
_________________
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7
-
Offline
- *master*
- Posts: 229
- Joined: 21 Feb 2013, 03:21
- Location: Los Angeles, CA
Re: Possible 3D-effect for every hardware?
Whole file with annotations:
http://www.mediafire.com/view/gv7njkw7z ... r_lines.fx
http://www.mediafire.com/view/gv7njkw7z ... r_lines.fx
_________________
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7
-
Offline
- *master*
- Posts: 229
- Joined: 21 Feb 2013, 03:21
- Location: Los Angeles, CA
Re: Possible 3D-effect for every hardware?
I mean thanks for the idea cosmic blue.
_________________
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7