+portal problem

Discuss HaloCE modding with the HEK tools here. For help, go to the Help Desk forum above.
Post Reply
mothergoat





Posts: 13
Joined: Fri May 21, 2004 10:32 am
Contact:

+portal problem

Post by mothergoat »

So I did exactly what the HEK tutorial told me to to add my +portal to increase performance. In Sapien, it recognizes the portals fine, but much of the level is unseen depending on where I move. I export it to a .map and the same problem occurs. I can't see chunks of my levels. What gives?

Thanks
Grenadiac




Socialist Golden Age Magic Era Eureka
Tsunami Scorched Earth Articulatist 250

Posts: 390
Joined: Fri Sep 05, 2003 1:36 pm
Location: Tucson, AZ USA
Contact:

Post by Grenadiac »

Well, that's what portals are for. They are used to calculate something called PVS - potential visible sets. The compiler splits the world up into areas determined by the world geometry and portal geometry. Then these "rooms" (leaves) are compiled to see which other leaves they can "see". If one room can see another room, it is marked as "potentially visible" and the renderer will draw the set of rooms that can be seen from the room the player is in.

That way, if you are inside a tunnel, the game engine doesn't draw the entire outside world...it is wasteful.

The only problem is that Halo has an unusual portal system...it seems to be 2D. So if you have a level that has a widely varying range in height, you could run into problems. This is purely a guess on my part, but it appears to be that way.

Anyone have any thoughts on this?
Post Reply