Update

Published March 13, 2006
Advertisement
Well, I'm not going to claim the portal and anti-portal system is totally debugged, but it's definitely closer. I found a rare instance where some geometry would drop out when the camera's near plane intersected the portal.

I took out the clamping code for the portal, and instead test the portal's points vs the near plane of the frustum, and if it's fully outside ( possible if the camera is one on side of the portal and the player on the other ) or partially clipped, then I just use the existing viewport and don't try to clip or clamp it. This fixed the issue of dropouts.

I further simplified the portal / cell layout this weekend. Instead of the cells looking for neighbor cells via overlap, and portals in the cell/cell intersection area, I switched to a much more forgiving and simpler portal-based approach.

Fow now I removed the detection of cell neighbors, but will add it in later as a rarely-used method where the designer can flag certain cells as neighbors via facets.

I ran into issues with the portals when a cell partly overlapped many portals. The new scheme takes each portal, grows it by 2 meters in each dimension, and queries for intersecting cells. It then walks through these cells and takes the 2 with the largest volume intersection with the expanded portal as the two cells conntected by the portal. This way if a cell overlaps a corner of a portal, it doesn't matter, and the cells don't even have to exactly touch the portal to be hooked up.

Right now I'm debugging a fog culling issue, and drinking Diet Dr. Skipper. This is sooo glamorous. ;)
Previous Entry Update
Next Entry More Portal-rific
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

1.2 Almost ready...

1137 views

Sound Paths

1354 views

Stately Progress

1164 views

State Lines

1309 views

Pulsing

889 views

Return to The Ship!

1028 views

Cameras & Boxes

1146 views
Advertisement