Monday, April 18, 2011

Bounding Volumes and Collisions

At this point, I have bounding spheres and bounding cubes being created correctly. I also implemented sphere to sphere collisions and box to box collisions successfully. However, a huge impediment to my progress is the fact that I still cannot draw an actual sphere to represent the bounding volume. 


In order to represent collisions now, I am printing out whether the objects are colliding to the console window, in addition to changing the color of the objects themselves. I pass a green light color to the shader if the objects are not colliding, and a red if they are. This is good for testing purposes, but I am still very unhappy with the lack of actual wire-frame and spheres. 


Despite the sphere problem though, I am going to work on creating a cube wire-frame today to represent the bounding boxes around objects, and then move on to really getting those spheres done. The fbx converter that I am writing for engine is now able to successfully extract the necessary model data from fbx's, but for some reason, I am still not able to draw the cube successfully. I will have it working right by the end of the week, and plan on using fbx's to draw my bounding volumes then if no solutions arise faster.I will post more on my progress later tonight.