Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development Cameras in Unity Camera Movement Tracking Camera Setup

Ben Reynolds
Ben Reynolds
35,170 Points

Game board object visible through wall

As the tracking camera moves backward down the hallway the cylinder shaped game board can be seen through the wall.

3 Answers

In my case turning off Ambient Occlusion in the Cinematic Camera Post-Processing Profile fixes the issue.

Please include your code in your post, it makes troubleshooting a lot easier.

If you want a quick, dirty fix you can simply add a layer to the game board, and remove that layer from the camera's culling mask.

Alan Mattan贸
Alan Mattan贸
Courses Plus Student 12,188 Points

Disable all the game object that contains the camera. Enable only Camera 2. Use only one camera for rendering. Double check that the wall has the correct proper shader material and is not using a glass material. Do not use a Unity in beta stage (it can include bugs). Try to use the latest Unity Vr. with big numbers. As for example Unity 2017.2.3. If you are using post process effect, take a look if disabling this particular component the problem disappear. Update all your GPU drivers to the latest version. Try to take out all game object and components until you get, hit with the component that is triggering the problem. If you are using the latest Unity beta version and if the component that triggers the error is a Unity component then submit it as a bug.