Why is the Portal not cutting out the pillar walls in Brackeys’ Portal tutorial?
The portal render that we see is showing the sides of the other portal’s pillars which isn’t what the tutorial had. If I turn to the left or right, I will see the pillars a lot and it will take over most of the Portal image. Even if I don’t turn, but just walk left and right, I will see the side walls. Does anyone know why this happens or what I did wrong?,I started working on the tutorial and now I’ve run into a problem that occurs when I rotate my camera. The other camera looks at the pillars of the portals and the scripts render that and don’t cut them out like they should. Also, if I just walk right or left, the pillars will be a huge problem because they take up most of what is rendered for the portal. Have I done something wrong? I checked my code and didn’t see anything off.
Answer by streeetwalker · May 04, 2020 at 11:47 AM
Hi @ZachCreates Brackey's is an excellent site with a lot of great tutorials, but his portal camera implementation is a basic one.
If you want to understand what his camera is doing and how to overcome the problem, see this more advanced video from Sebastian Lague - this is not really for beginners but it should give you some ideas:
https://youtu.be/cWpFZbjtSQg
I’ve checked that video out, but maybe you’re right. I might have better luck following that tutorial. Thank you!
If you watch near the end of the video, I think he describes the problem you are having. He talks about adjusting one of the camera clipping planes to remove unwanted objects from appearing in the portal. See at about 12:12 $$anonymous$$utes in: https://youtu.be/cWpFZbjtSQg?t=732
Thanks! I didn't even think about that. Unfortunately, that would only fix one of the problems. I still am having problems with the portal cutting out only the portal's view. It is fine though. I have decided to stop working on this portal since me and my friend have a different plan for our game now. Thank you for all the help! (:
Your answer