Hello everyone.

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.

Casting light from virtual light source onto real world objects

Holo_galHolo_gal
edited May 2017 in Questions And Answers

I have a model of a light source which can emit red color light. I will have to show using Hololens how the real world gets lit using this light source and how the light spread looks in the real world. Can anyone suggest a way to do it?

Tagged:

Best Answer

Answers

  • VratiVrati
    edited May 2017

    You can use Spatial Mapping prefab from Holotoolkit. The mesh so created can have appropriate material as per your room. Check the draw-visual-meshes checkbox.

  • @vrati: The requirement is slightly different here. I have a 3D model of a light source (an incandescent bulb). I need to show how the real world room gets lit up when the virtual bulb is switched on.

  • Place your light source in the room and it should show its effect on spatial mapping created.

  • trzytrzy ✭✭✭
    While you can't do it because of the additive display, it could possibly work in a mixed reality capture. Doesn't sound like it would be easy to get an accurate simulation.
  • @stepan_stulov any pointers to how I can write a shader to receive light? I found something to receive shadows: https://forum.unity.com/threads/shadow-catcher-or-matte-shadow-shader.414418/#post-2703373
Sign In or Register to comment.