Tuesday, March 18, 2008

The proof of the pudding...

Here's the entrance to the main central hall in E1M3 with some torch coronas shining. Notice how all visible torches have a corona which is (correctly) not depth tested, but the two torches off to the right (beside the gold key door) don't show.

If the obscuring wall was a brush model, they would still not show. Using traces, that part would not work correctly.

This gives the same end result as using hardware occlusion queries, but it's faster and will work on a card that doesn't support hardware occlusion queries.

3 comments:

Entar said...

Nice work, mh :)

CocoT said...

Yeah, very nice! :)

xaGe said...

     ..That's brilliant! Great stuff... :-)