Search Unity

Two Cameras. Different views. One overlapping one other.

Discussion in 'Scripting' started by slumberus, Nov 30, 2007.

  1. slumberus

    slumberus

    Joined:
    Apr 17, 2007
    Posts:
    39
    Basically as the title says.

    Lets say I need a fps view for the entire screen. And on the bottom left corner there is a top view of a miniaturized 3D map. This 3D map overlaps the FPS view.


    Thanks. :)
     
  2. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    Cameras with a higher depth will be drawn on top of cameras with a lower depth value.

    Select MiniCamera and set the depth of the minicam to a higher value than the fps cam

    AC
     
  3. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    What Targos said and also change the settings in the mini camera's "Normalized View Port Rect" to size and place the view where you'd like it.
     
  4. slumberus

    slumberus

    Joined:
    Apr 17, 2007
    Posts:
    39
    Woot! It works.

    Coincidently when checking on the depth in the Camera reference manual I found out about the Clear Flags option that can clear the skybox portion, which is also what I wanted.

    This is what I did so far. The bottom left corner is the overall top view of the house using the 2nd camera with Clear Flag checked on depth.



    Thanks! :D