Search Unity

Hololens and object like a mask appear in video recording

Discussion in 'General Discussion' started by WonderDaf, Aug 24, 2021.

  1. WonderDaf

    WonderDaf

    Joined:
    Dec 20, 2018
    Posts:
    5
    Hi all!
    a tip when you have a moment please !...

    doing tests with unity and hololens, a strange thing has already happened to me even on the objects.
    In practice in hololens I see everything well.
    But when I record the video with hololens (standard microsoft function, that same object (in this example the magic sphere) ends up as if it were masked and you only see it if you pass in front of another visible object.
    I repeat, only in the video recording (which however is important for sharing with others).
    Someone have the faintest idea what it could be? has it ever happened to you?

    in attach a gif to explain better
    let me know please
     

    Attached Files:

    Last edited: Aug 24, 2021
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,569
    You can have this sort of effect with a transparent object that does not write into depth buffer. Basically, if you
    1. Paint a non-transparent object.
    2. Paint a transparent object like particle system on top of that
    3. Paint a skybox or a mask that are far away.

    In this specific order, then the skybox/mask will erase transparent parts that do not have a solid geometry behind them.

    You could try using dithered transparency or alpha-tested objects instead.
     
    WonderDaf likes this.
  3. WonderDaf

    WonderDaf

    Joined:
    Dec 20, 2018
    Posts:
    5
    il try to do that ...
    thank you
     
  4. WonderDaf

    WonderDaf

    Joined:
    Dec 20, 2018
    Posts:
    5
    where i can find dithered transparency? im not very expert ... can you give a link or resource that i can explore to understand well your suggestion? please :)
     
  5. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,569
    You can google it, the first hit will be a github repository that imlements it.
    https://github.com/gkjohnson/unity-dithered-transparency-shader

    Not the most recent one, though.