playMaker

Author Topic: Multiple Cameras render in One Scene?  (Read 4878 times)

neowings

  • Playmaker Newbie
  • *
  • Posts: 25
Multiple Cameras render in One Scene?
« on: April 20, 2013, 02:05:00 AM »
Hello,

What I'm trying to do is Load separate GUI scene file into game play scene file with "Additive" check is 'On'.

Both scene files have cameras, and the camera from GUI scene is not main camera (tag is changed to 'Untagged' and depth is -2 while main camera of play scene file's depth is '-1'.)

Loading Gui scene into Play scene is successful, But GUI camera doesn't work.


The reason why I made separate GUI scene file is, I'm using 2DtoolKit Unity plugin to reducing Draw Calls instead of using Unity's basic GUI texture. Moreover, I wanted GUI images don't have perspective view. (GUI camera is setting as Orthographic.)
 
Am I missing steps for activate two cameras in One Scene, or is this basically impossible? If I miss, what Actions should be used in the scene? Or is there different way rendering two cameras in one scene?

Thank you.
« Last Edit: April 20, 2013, 02:09:44 AM by neowings »

neowings

  • Playmaker Newbie
  • *
  • Posts: 25
Re: Multiple Cameras render in One Scene?
« Reply #1 on: April 20, 2013, 06:00:38 AM »
I think I got it.

It was matter of Camera's 'Depth' order and 'Culling Mask'

I post this for people who doesn't know that.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Multiple Cameras render in One Scene?
« Reply #2 on: April 22, 2013, 01:15:45 AM »
Hi,

 Thanks, always share back your finding, people will definitly benefit form this:)

bye,

 Jean