Sunday 6 May 2018

Just a short post.

Bounding-box culling is now being performed between BSP leaves and the view frustum. The modelview and projection matrices are used to calculate 6 planes. If a box is entirely outside of this convex space (a VERY easy test to do, just dot products), then it there's no point attempting to draw it. I want to extend this so a new set of planes are formed for portals. If this works out fast enough, then I can replace the existing hardware occlusion queries (they seem to have high bandwidth usage because they stall the pipeline in some way).

Also, I managed to get multiple Orb modules co-operating. This was difficult because it's easier for a pointer from one module to point to something belonging to a different module. When the pointer is serialized, a domino effect would occur which would result in the entire other module being archived in the same file. NOT desirable.

I'm having problems with the map loading code, which is delaying the implementation of normal mapped surfaces. The structures are there, but I can't use them yet. Frustrating.

No comments: