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.

Hololens - How to render different layers with multiple cameras?

In my scene I have some objects that display machine states at fixed positions. With a second camera I would like to track spheres (with the same positions as the machine state prefabs) that sit on another layer "radar" and display them in my compass.

The result so far is, that it works fine in the unity editor but not on the hololens .. so the question is why?

And my second question is: in general .. is it possible to work with more than one camera when building for hololens?

Here you can see what I get. On the left side is the Unity editor with the prefab that shows the machine state and the "minimap/compass/radar". On the right side you can see this version on the hololens. The spheres on the radar layer are just funky.

My GameObject Management:

My RadarCamera (second camera) settings:

Best Answer

Answers

  • Try experimenting with the 'TargetTexture' setting & have the second camera output to a render texture which in turns renders on a quad. Quality / lag will likely be an issue however when playing on the Hololens.
    https://docs.unity3d.com/Manual/class-RenderTexture.html

Sign In or Register to comment.