Welcome, Guest.
Username: Password: Remember me

TOPIC: Request: Faux Color Casts Lighting from Depth Map

Request: Faux Color Casts Lighting from Depth Map 1 year 5 months ago #1

I had an idea for a shader; one that creates baked light color casts using the game's depth. Along with casting a global color and ambient color the effect could also add a rim light color cast. The shader would read the depth and then "cast" onto objects two color values: sunlight (orange) and the 2ndary color (blue) to give games a greater sense of depth through basic color theory. I see this often in CG animated cartoon movies to add extra pop of color and better suggest changes in depth. In short; read the depth map and cast a faux lighting onto it with options for color of lights, ambient color and optional rim light effect.

I wonder if something similar can be achieved in reshade? The values would need to be depth amount, color 1, color 2, amount of inset blur, some directional angle and some overlay mode parameters. I don't know how to properly describe it but I'm fairly certain the effect exists. (or should. ;)) anyone have any idea what I'm describing? Would this be doable in reshade?

Something like this:



Last Edit: 1 year 5 months ago by magicart87.
The administrator has disabled public write access.
The following user(s) said Thank You: jas01, YOBA

Request: Faux Color Casts using depth map 1 year 5 months ago #2

Me thinks if you'd provide some pictures of what you mean ppl would have a notion how it should look like.
The administrator has disabled public write access.
The following user(s) said Thank You: magicart87

Request: Faux Color Casts using depth map 1 year 5 months ago #3

I take it that it isn't possible.
The administrator has disabled public write access.

Request: Faux Color Casts using depth map 1 year 3 months ago #4

I think it would be awesome if its suttle.
The administrator has disabled public write access.

Request: Faux Color Casts using depth map 7 months 4 weeks ago #5

I think he's suggesting IBL (but that doesn't use depth AFAIK) or a fresnel effect (cannot be done in PP).

IBL would be great for older games but it doesn't seem plausible.

There's a misconception regarding Reshade 'shaders' as in people of no or limited understanding of computer graphics (as myself) think that 3d shaders and 2d shaders (post process effects) are the same and can be done in a 3rd party injected app.
The administrator has disabled public write access.

Request: Faux Color Casts Lighting from Depth Map 7 months 4 weeks ago #6

Those effects are based on Normal map buffer, not depth buffer.
The administrator has disabled public write access.

Request: Faux Color Casts Lighting from Depth Map 7 months 4 weeks ago #7

You can derive normals from depth (see MXAO), although in view space, so all lighting etc will rotate with camera.
Last Edit: 7 months 4 weeks ago by Marty McFly.
The administrator has disabled public write access.