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.
Options

Translucent result

Hi,
As I know HoloLens uses additive light, so If I put a hologram before a real object I can somehow see the object behind the hologram. But if I put the hologram after the real object, it give me a feeling that the real object does not exist. Actually I want to reach a translucent result to somehow see the hologram behind the real object.

How to reach this effect?

Thanks a lot.

YL

Answers

  • Options

    Hey @Yixun ,
    Are you using any SpatialMapping? You could disable the vertices that are between your HoloLens and the object.

    spatialMapping = GameObject.Find("SpatialMapping"); //you possibly need to adjust the name
    spatialMesh = spatialMapping.GetComponent<SpatialUnderstandingCustomMesh>();
    foreach (SpatialMappingSource.SurfaceObject surfaceObject in spatialMesh.SurfaceObjects)
            {
               //check if surfaceObject should be disabled and do surfaceObject.Renderer.enabled = false;
            }
    

    Just make sure you SpatialMapping is not updating the mesh again
    spatialMesh.ImportMeshPeriod = 0.0f;

    If I misunderstood you, please clarify you question :)

    Regards
    pstueven

  • Options

    Hi pstueven,
    Thank you so much for your answer. I think your are talking about occlusion, right?
    I can use SpatialMapping to occlude the hologram behind the real object. But what I want to reach is not to occlude the hologram, but see it translucently.

    Thank you.

    YL

Sign In or Register to comment.