Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Shadow material. in HDRI light, we can not get shadow on ground #540

Open
bharatshiyani opened this issue Aug 22, 2022 · 1 comment
Labels

Comments

@bharatshiyani
Copy link

bharatshiyani commented Aug 22, 2022

As there is no physical object at ground, we do not get shadow at ground.
Way to do is created transparent plane underneath the 3d model and apply special material, this material can receive only shadow samples, for rest of the part it is completely transparent.

Currently we do not have any material type such as it receive only shadow map. So can we please look into it?

@Twinklebear
Copy link
Contributor

If I understand correctly, I think this could be done with the path tracer's shadow catcher plane feature (this is still needs to be made an official/documented feature). This lets you place an invisible plane in the scene that will "catch" the shadows of objects, allowing them to cast a shadow even though there's no visible geometry in the scene that receives it. This has the effect of making it look like they're casting the shadow on to the HDRI light map.

I see you found #167 (comment) , for specifying the shadow catcher you'll set a vec4f parameter on the renderer named shadowCatcherPlane that specifies the plane coefficients, just like specifying a single plane geometry: https://www.ospray.org/documentation.html#planes .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants