Jump to content

Portals with the same sector for front and back do not error.

DiHedron Studios

Recommended Posts

Hello!  I found a funny issue when setting up portals automatically in my project.  I have a script that will automatically determine the front and back Sector for a portal.  I encountered an issue where I was getting the same Sector for each and did not catch this in my code. This was a bug on my part, but it highlighted that your code in SECTR_CullingCamera.cs does not check for recursive portals.  


I found this issue due to the while loop which walks through the portal graph getting stuck in an infinite recursion.  SECTR_CullingCamera.cs Line 666: 

while (nodeStack.Count > 0)

nodeStack always gets a new push, causing the while to never exit.  


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

  • Create New...