KatsBits Community

Game Editing => Q3Map / Q3Map2 Compile Errors => Topic started by: kat on June 25, 2015, 09:53:22 PM

Title: MAX_LEAF_FACES
Post by: kat on June 25, 2015, 09:53:22 PM
Problem
Are there some unwritten rules concerning the making of portals? I have had to simplify the portal I made for my WIP considerably just to get it to compile. It appears that a portal's geometry cannot go beyond a certain level of complexity, nor can it be too large (i.e. the size of the world or larger). I got the...

Code: [Select]
MAX_LEAF_FACES
... error in the BSP stage when I attempted to construct some buildings from brushwork in my portal. I've now just made a few simple buildings, ASE'd them and cloned/rotated them, and there's no problems. Has anyone had this error before? What's the different between a BSP leaf's face and its portal? [seremtam]

Solution
This error occurs when you have too many drawsurfaces in a single BSP leaf. The max is 0x2000 (8192). You must have some exceedingly complex set of surfaces or are not using q3map_nonplanar or meta to merge stuff, or using _blocksize with a value too high or simply not splitting them map up enough.

I don't recall the last time I saw anyone get that error. [ydnar]

Quote
Additional note: or your skybox area is too complex. Try to keep it reasonable, because the 8192 leaf/surface max means you're limited to 8192 surfaces in your skybox. Usually less, since sky leaves tend to have other surfaces already in them.