This is a demo of my first Occlusion system, it uses a couple of checks to see if an object is truly in view of the camera.
Check 1: Is the object in the Field of Vision AND
Check 2: Is the object occluded by the Blitz Terrain
Check 2 is done by casting a ray from the object to the camera, if it hits the terrain then it is occluded. I wrote a small routine using Vectors that does this check (lots faster than Linepick)
Controls are Cursors and Mouse.
Mouse Button (right) = Rotate camera
Mouse Button (left) = Wireframe mode
When in wireframe use cursors left/right to see the objects being occluded when behind the terrain.
Please let me know how this works for you.
On my 700Mhz laptop with the ATI mobility card I get 20Fps with 10,000 objects.
http://www.morphlings.com/tim/occlusion.zip
Check 1: Is the object in the Field of Vision AND
Check 2: Is the object occluded by the Blitz Terrain
Check 2 is done by casting a ray from the object to the camera, if it hits the terrain then it is occluded. I wrote a small routine using Vectors that does this check (lots faster than Linepick)
Controls are Cursors and Mouse.
Mouse Button (right) = Rotate camera
Mouse Button (left) = Wireframe mode
When in wireframe use cursors left/right to see the objects being occluded when behind the terrain.
Please let me know how this works for you.
On my 700Mhz laptop with the ATI mobility card I get 20Fps with 10,000 objects.
http://www.morphlings.com/tim/occlusion.zip