Godot: shadow/matte material - no render, only shadow, reflection etc.

Created on 8 Jul 2017  Â·  9Comments  Â·  Source: godotengine/godot

So this trick has been around for many years in software such as blender and 3ds max. They have a material that receives shadows, or reflections and effects. As the user chooses.

It would be really handy to have a material like this! Im working on something where I need an invisible ground plane. But I want reflections and shadows on the invisible ground.....

Is there anything like this in gd3?

archived feature proposal rendering

Most helpful comment

Would really appreciate some guidance on how to do this. I don't understand the comment "sampling the screen texture", any step by step tutorial or at least pointers would be great. I've got a 2D game that would really shine with some 3D in it, but I need to have the 3D cast a shadow onto the 2D background.

All 9 comments

How could you have reflections on something that is not visible? Doesn't make sense to me. If it is some kind of mirror then it couldn't be invisible anyway.

You might get away with that using just a reflective plane.

so for example

Say I have an image of a desk. I want to overlay a 3d mug on that desk. But I want to have a plane for the shadow and reflection to appear to make it look like they are falling on the desk. While the desk is in 2d space, i need a shadow and reflection to appear without blocking the 2d image of the desk.

That's called a shadow catcher. :)

you can do this fine by sampling the screen texture currently

On Wed, Jul 12, 2017 at 12:11 AM, rredesigns notifications@github.com
wrote:

That's called a shadow catcher. :)

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/9552#issuecomment-314632361,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z2wYcGPqDrJxbZh-7F-Duy7LmoVS2ks5sNDlRgaJpZM4ORsHx
.

Would really appreciate some guidance on how to do this. I don't understand the comment "sampling the screen texture", any step by step tutorial or at least pointers would be great. I've got a 2D game that would really shine with some 3D in it, but I need to have the 3D cast a shadow onto the 2D background.

Any idea about Shadow Catcher on Godot? or any tutorial on @reduz idea's?
It seems this issue doesn't take any decision yet, no bug label, no milestone, no idea ...

I found that!
Simple shader something like below can do Shadow Capturing:
`
shader_type spatial;

void fragment() {
ALBEDO = texture(SCREEN_TEXTURE, SCREEN_UV).rgb;
}
`

Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine.

The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker.

If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance!

Note, that this suggestion is already in the engine as siamak-s pointed out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

testman42 picture testman42  Â·  3Comments

Spooner picture Spooner  Â·  3Comments

kirilledelman picture kirilledelman  Â·  3Comments

SleepProgger picture SleepProgger  Â·  3Comments

bojidar-bg picture bojidar-bg  Â·  3Comments