Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

minimap view is different with its camera preview

Discussion in 'General Graphics' started by dglee2592, Jul 27, 2019.

  1. dglee2592

    dglee2592

    Joined:
    Nov 14, 2018
    Posts:
    2
    Hi,

    I'm now making a 3d rpg game.
    I put second camera and almost works well for the minimap.

    However, only one problem is,
    minimap view in game window is different with minimap camera preview in the scene.
    I think the problem is because some order? of my terrain items.

    Some items are behind the ground but minimap view in game is showing it even preview is not showing them at all...

    I tried to change new rendertext, but it is same..

    Can anyone advise me about this?
    Thanks in advance.

    minimap-wrong.png
     
  2. YBtheS

    YBtheS

    Joined:
    Feb 22, 2016
    Posts:
    192
    This is the wrong sub-forum to post it in. You should get more help in the graphics sub-forum. Probably the general graphics section. Good luck with solving your problem :)
     
    dglee2592 likes this.
  3. dglee2592

    dglee2592

    Joined:
    Nov 14, 2018
    Posts:
    2
    Thank you for the advice!!
     
    YBtheS likes this.
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    7,660
    There's lots of reasons this could be the case.

    Could be your render texture doesn't have a depth buffer (assuming your objects aren't all sprites).
    Could be how you're displaying the render texture. If the alpha values getting rendered to the render texture aren't opaque, your UI element may not match what you see in the preview (which doesn't show alpha).
    There are also a number of things the Preview window doesn't show properly for cameras. Id look at the render texture itself to see what it's actually rendering rather than rely on the preview.