3D model viewer with transparent plane below drawing a shadow #370
Unanswered
dilldilldill
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I try to achieve a 3d model viewer with transparent background and a shadow below the model similar to this. I am using the 3d model viewer example as a starting point.
Now I am facing two problems basically.
The first problem is that I don't know how to have a transparent plane that still can receive shadows. I found a hint on how to create such a material by using this mat file:
But when I try to use the resulting filamat file that I compiled using
matc
I keep getting the following error:This is how I set up the bottom plane:
The second problem is lighting. When I disable the indirect light of the environment (
indirectLight.setIntensity(0f)
) and place lights around my object I only achieve two things. Either the model and the plane appear greyish because of the dim light but the model casts a shadow, or when I light up the model properly either by a few lights that I set up or I set the indirect light intesity to a higher value, the shadow is barely visible at all.Beta Was this translation helpful? Give feedback.
All reactions