The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Is it possible to use lights casting shadows in Hololens with Unity?
I'm trying to cast shadows from one light in Unity Hololens special edition, but although I set properly the light shadows do not appear.
Best Answer
-
OptionsMonday admin
Amunyoz,
It is indeed possibly to make lights casting shadows in Unity! One thing to keep in mind here is performance. For this reason I would suggest only one shadow casting light per scene and making it a directional or spot light (point and are lights are much more expensive).A few things to check:
Make sure you are using a shader that allows casting shadows (Which shader are you using?).
Make sure the mesh renderer component is set to cast shadows on and recieve shadows is checked
Check your performance settings dialog to make sure it is allowing shadows: http://docs.unity3d.com/Manual/class-QualitySettings.htmlCheers,
Ryan6
Answers
So you have a light source, and two objects with one positioned so that it would partially block the light source hitting the other object?
Amunyoz,
It is indeed possibly to make lights casting shadows in Unity! One thing to keep in mind here is performance. For this reason I would suggest only one shadow casting light per scene and making it a directional or spot light (point and are lights are much more expensive).
A few things to check:
Make sure you are using a shader that allows casting shadows (Which shader are you using?).
Make sure the mesh renderer component is set to cast shadows on and recieve shadows is checked
Check your performance settings dialog to make sure it is allowing shadows: http://docs.unity3d.com/Manual/class-QualitySettings.html
Cheers,
Ryan