Search Unity

Hololens and highlight 3d system

Discussion in 'VR' started by tonolito, May 7, 2019.

  1. tonolito

    tonolito

    Joined:
    Sep 8, 2017
    Posts:
    2
    Hi everybody,
    I'm looking for advise/help for a current project on Unity 2018.2.3 and Hololens 1st gen.
    I would like to know if there is a way to get an outline or highlight glowing effect on a 3d mesh (or "hologram") ?
    I've wrote multiple outline shader with amplifyShader and beside the fact that the outline isn't glowing, i get some artefacts on meshes like "gap or fracture" within the HUD Display.
    I've tried to use the particle system, the glowing effect was good, but à too shaggy.
    Finally, i've bought the "highlighter package" on assetstore. Even if it's not developped, for XR.
    It works very well inside the viewer (glowing effect is pretty good and consistent) but it's broken once it's built within the helmet.
    There are 2 scripts, one for mesh and another one for the Hololens camera prefab.
    The issue is that the glowing effect is stuck / camera anchored on the tracking/raycast/camera, whatever i do.

    Any Idea, tricks to avoid this issue ? Use another camera or layer.

    Thank you.
     
  2. songsongsongsong

    songsongsongsong

    Joined:
    Mar 6, 2019
    Posts:
    15
    Hi tonolito.
    the shader is based on the fragment or vertex?
     
  3. tonolito

    tonolito

    Joined:
    Sep 8, 2017
    Posts:
    2