Posted by Dr. Willard on June 29, 2000 at 23:56:16:
In reply to: sky posted by rgbold on May 31, 2000 at 07:39:57:
: : Tomb Raider 2/3 sky meshes are moveables and the whole level is IN this moveable. Use TRViewer and look at mobeable #92 from jungle.tr2.
: Bart's right. I tried to get the mesh in TRitem but couldn't get the
: sizing right. Just showed about a 3 block radius sky cone. (pretty neat
: effect tho) Put it on the back burner.
Here's my guess as to how it's rendered.
Z-buffer cleared
Z-buffer reading/writing disabled
The sky rendered as an object centered on the viewpoint
Z-buffer reading/writing enabled
Everything else rendered
This trick will place the sky at infinity without any distance conflicts. Objects that are too far do not get hidden by the sky; instead, they drop out -- a piece of a wall disappears all at once.