Attn Paul: Visibility culling

Discuss anything about the original Dungeon Master on any of the original platforms (Amiga, Atari, etc.).
This forum may contain spoilers.

Moderator: Ameena

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
Tom Hatfield
Ee Master
Posts: 688
Joined: Mon May 07, 2001 7:00 pm
Location: Indiana, USA
Contact:

Attn Paul: Visibility culling

Post by Tom Hatfield »

You're quite possibly more familiar with the DM code than any of us. Is there any visibility culling technique used in DM/CSB to cull tiles that are blocked by walls? If so, would you be kind enough to give a brief explanation of how it works? Is there any ray-casting going on, or did they just render the whole scene back-to-front?
User avatar
Paul Stevens
CSBwin Guru
Posts: 4322
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

Pretty simple back-to-front. They may skip a couple
of cells that are blocked by walls in front. The function
DrawViewport() does the work and is relatively simple.
It calls individual functions for each cell.
Tom Hatfield
Ee Master
Posts: 688
Joined: Mon May 07, 2001 7:00 pm
Location: Indiana, USA
Contact:

Post by Tom Hatfield »

Cool, thanks. I'm just trying to get info for a clone project. As it stands, I'll be using a scanline triangle fill algorithm to determine cells that fall within the viewing frustum. I'll probably want some kind of raycaster to throw out cells that are completely hidden behind walls, but I'm still working on that.
Post Reply