Hello Guest

Author Topic: Twitchy 'Z' index and parts of scenery flashing on and off...  (Read 4999 times)

harry hayes

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 16
    • View Profile
Hi...

I've thrown a quick test scene together to test the parallaxing with the perspective camera.

I've also used temporary images - I know the quality is rough, antialiasing etc. and blurry, but my main concern is that the Z index is very twitchey and parts of the scenery flash on and off or appear in the wrong order.

I can't find any setup of the perspective camera, only the short video on YouTube. All the info seems to centre around an orthograhic camera.

I've posted a webplayer to illustrate this. If you run the little guy the right the scenery appears, and then starts flickering and misaligning.

http://www.ari.me.uk/dev/unity/

Thanks,
Harry

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Twitchy 'Z' index and parts of scenery flashing on and off...
« Reply #1 on: April 30, 2012, 10:11:57 am »
I can't tell from that why the background is completely invisible at the start, but with the z issues I suggest using the parallax script in the private support forum. This will give you the same result you're trying to achieve, with almost no chance of z sorting issues.