microsoft / RoomAliveToolkit

Other
714 stars 191 forks source link

How do I see objects behind the projection surface? #67

Closed lilfighterr closed 6 years ago

lilfighterr commented 6 years ago

I have projection mapping working in Unity, however I would ideally like to not be limited by the projection surface. The projection mapping works as expected when the object is in front of the surface: unity_projection rl_projection

However, when I put the object behind the screen, it gets covered by the screen (since the screen is being rendered as black) and so I don't see the object when projected. unity_projection2

How could I make it so that I could see through the screen when putting the object behind it? I'm assuming it has something to do with the shaders and setting them to be transparent?

Thanks.

lilfighterr commented 6 years ago

Nevermind. After much more fiddling with unity rather than the shader itself, I just had to disable the "Render User View" on the first RAT Projection Pass.