Search Unity

Render gameobjects within boundaries

Discussion in 'World Building' started by keithroyce, Dec 12, 2019.

  1. keithroyce

    keithroyce

    Joined:
    Mar 2, 2018
    Posts:
    17
    Hi guys!

    Im working on a small passion project with AR. Im trying to figure out how i could render a large scene within the confines of another game object. Ive attached an image of what i mean by this, where whats drawn in white is whats being rendered and yellow is not being rendered.

    I know this usually isnt a problem for normal games since you can just use occlusion culling, but in AR, i dont think it works that way.

    Any help or a suggestion in the right direction would help heaps!!

    Thanks in advance :)
     

    Attached Files:

  2. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    I think that's what EditorVR does for the minimap, if i remember correctly they do it via manual camera rendering with recalculated matrix + shader clipping. The repository probably still has those scripts.
     
  3. keithroyce

    keithroyce

    Joined:
    Mar 2, 2018
    Posts:
    17
    Sweet, I'll give it a look. Thanks for the reply!