Author Topic: Not scene clearing in free aspect  (Read 2809 times)

minmul99

  • Guest
Not scene clearing in free aspect
« on: April 27, 2012, 02:35:31 AM »
Hi, I'm using your NGUI for drawing circle-shape objects.
However, when i tried to change scene's aspect to 'Free Aspect', then there are remain frames which did not cleared.

Other aspects, for example, iphone 4G wides(960x640), there are no such effects.

Problem


Other aspect


I have no idea why this bug(?) happened...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: Not scene clearing in free aspect
« Reply #1 on: April 27, 2012, 02:38:46 AM »
Select your camera and change its clear settings to 'color' as well, not just 'depth'.

minmul99

  • Guest
Re: Not scene clearing in free aspect
« Reply #2 on: April 27, 2012, 02:43:24 AM »
Yeah, i tried it. it was successful, but i have another camera for drawing other things behind the circles.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: Not scene clearing in free aspect
« Reply #3 on: April 27, 2012, 04:14:25 AM »
Then that camera should be clearing color. At least one camera should be doing it (usually the first camera to draw).

minmul99

  • Guest
Re: Not scene clearing in free aspect
« Reply #4 on: April 29, 2012, 08:21:42 PM »
um, what does it mean "Clearing color"?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Not scene clearing in free aspect
« Reply #5 on: April 30, 2012, 02:21:42 AM »
On the Camera in the scene, there is a setting called "Clear Flags" one of your camera's should clear to Solid Color or skybox, otherwise the frames will not clear when a new one is drawn and it will look odd.

If you put solid color on a camera that's drawn AFTER another however, it will clear what the former camera has drawn, so be careful. :)

minmul99

  • Guest
Re: Not scene clearing in free aspect
« Reply #6 on: April 30, 2012, 04:40:27 AM »
Nicki // then, why camera does not clear scene in 'free aspect' only? In unity editor, other aspects clear scene normally, but free aspects and my device do not clear scene.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: Not scene clearing in free aspect
« Reply #7 on: April 30, 2012, 06:12:00 AM »
It doesn't clear it anywhere. Free aspect simply allows you to resize the window, making the problem evident.