OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
navigation_bsp.cpp File Reference

Generate vertices and indices from brushes, terrain and patches. More...

#include "g_local.h"
#include "navigation_bsp.h"
#include "navigation_bsp_lump.h"
#include "../qcommon/qfiles.h"
#include "../qcommon/container.h"
#include "../qcommon/vector.h"
#include "../script/scriptexception.h"

Macros

#define MAX_INDEXES   1024
 

Detailed Description

Generate vertices and indices from brushes, terrain and patches.

  1. All shaders are parsed, they are used for solidity check.
  2. Planes, brush sides and brushes are loaded.
  3. Triangles are created by calculating brush windings
  4. Patches are parsed and rendered into triangles
  5. The LOD terrain is fully renderer into triangles