- Home /
camera clipping planes flickering
I have a problem with setting camera clipping planes to get correct close and far rendering at the same time. For both a cockpit panel and the rest of the scene.
Answer by MrSoad · Oct 30, 2014 at 11:28 AM
You have to use two cameras. One to draw the cockpit, which will draw over the other which will render everything else.
This is a basic in video games; every single video game is made that way, for things like cockpits, icon displays etc.
You can have different settings for each cameras clip planes. This will hopefully sort out your issue :)
If you need a bit more info on how to set this up then take a look at my answer to this question :
http://answers.unity3d.com/questions/812451/how-to-operate-2-cameras-simultaneously.html
yep, I was thinking about this at some point, but managing these two cameras is a bit clumsy in my case as there are several camera modes switching and additional camera is some coding overhead. But if there is no easier way I'll have to try this, Also in one of the modes I'm using stereocamera so main camera view is rendered onto render texture. I'm not sure how it would go if 2 cameras will render to same render texture but maybe it will work, will try that, thanks.
Answer by Fattie · Nov 17, 2015 at 04:24 PM
You certainly have to use two cameras for this. It's a basic of video game development.
Every single Unity project (other than trivial test projects) uses many cameras. Enjoy!
Your answer
Follow this Question
Related Questions
[Solved] Object Flickering When Camera Moves Around 6 Answers
Part of mesh disappears on certain rotation angles in first person. 2 Answers
Camera image flickers with SteamVR 0 Answers
Camera flickers to black in build, but not in Unity 0 Answers
Is there any way to create a fade effect in order to hide what isn't rendered by the camera? 0 Answers