2D Toolkit Forum

2D Toolkit => Support => Topic started by: harry hayes on April 30, 2012, 12:34:26 am

Title: Twitchy 'Z' index and parts of scenery flashing on and off...
Post by: harry hayes on April 30, 2012, 12:34:26 am
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
Title: Re: Twitchy 'Z' index and parts of scenery flashing on and off...
Post by: unikronsoftware 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.