MAX_MAP_VISIBILITY exceeded


(89blitz) #1

MAX_MAP_VISIBILITY exceeded
I get this when i try to compile my map
I have no clue what this is i have never seen it befor
I do not know what to do :S

I compiled it under - Q3Map2: (test) BSP -meta -vis -light -fast -filter

Any ideas?


(mazdaplz) #2

your q3map2 has been asked to calculate way to much portal information (ie. what portal can see what portal) and it’s running out of resources.

in other words:

your pc needs to know which one of the portals views which one of the others; it makes a long list to know what to draw and when to draw it:

portal1 is visible through portals 2 3 6 8
portal2 is visible through portals 3 1
portal3 is visible through portal 2
etc…

when you have blocksize 1024; every 1024 units the space closes into a portal, and it gets calculated this way.

if you have a big map that’s big trouble, because there’s a ton of 1024 box portals in all directions across the space of your map, and for each one theres a long list of view info.

increasing the size of the boxes will decrease the number of operations as well, because they will be more spaced out across the map

i have struggled myself with this one, the quick fix is to increase the value of your _blocksize key to double or maybe doubling the double

the definitive fix is like i do; to use blocksize 0 and a very good caulk hull with a ton of custom hinting all around, you have to be familiar with the notions of hinting and take it to the extreme, but it gives you so much control, the best idea is to split your map in 3 drawable areas, with zigzagin’ corridors in between


(89blitz) #3

Thank you It works now :wink: