Thursday, April 29, 2010

SSAO

First attempt at SSAO (Screen Space Ambient Occlusion). I still have many quirks to work out but it's coming along nicely.

Tuesday, April 13, 2010

Islands



I've made a small island model to run around in. Also added a simple collision model.
The in-game model divided up pretty well. Still needs a lot of work though to look nice but this is just a collision test.
The colored lines are the octree's division boxes and the white lines are nearby triangles that are candidates for collisions.

Return to Octrees


 Finally reimplemented my octree class in XNA. This time I've done it using generics too allowing me to reuse this class for my entities and polygonal collision models.

Octree octree = new Octree(BoundingBox, triangles,OctreeContainmentModes.Intersects);
Octree entityOctree = new Octree(BoundingBox,entities ,OctreeContainmentModes.Contains);

 Now I can use large models and only test for triangles that are in the immediate vicinity.