+2 votes

I want to make a living shadow in 3d environment (godot 3.1).
A characters which shadow is made by another object(3d model)!
The object is transparent that players cannot see that!
I see there have way to toggle off shadow!
But I don't know how to make shadow in transparent object.

ideal image

in Engine by (41 points)

1 Answer

+6 votes

This will hide the mesh and ony render the shadow:

  1. Click on the MeshInstance
  2. Go to the Geometry tab
  3. Change Cast Shadow property to Shadows Only
by (4,209 points)

It doesn't seems to work.
I have a mesh instance using as a floor on which shadow drops from some cube.
When I change to: cast shadow --> shadows only, the mesh disappears as well as the shadow that was dropped on it.

bashan: To solve this, you can duplicate the mesh and render it with separate materials: One mesh with an opaque material that casts shadows only, and one with a transparent materials that is rendered normally.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.