{"id":1239,"date":"2012-09-13T17:00:56","date_gmt":"2012-09-13T17:00:56","guid":{"rendered":"https:\/\/cml-a.com\/content\/?p=1239"},"modified":"2012-09-13T17:00:56","modified_gmt":"2012-09-13T17:00:56","slug":"3d-shooter-in-opengl","status":"publish","type":"post","link":"https:\/\/cml-a.com\/content\/2012\/09\/13\/3d-shooter-in-opengl\/","title":{"rendered":"3D Shooter in OpenGL"},"content":{"rendered":"<p>This game was made for a graphics course that had an open-ended choice of a final project. We were allowed to produce any sort of demo that used either OpenGL or raytracing techniques. I chose to do a use OpenGL (realtime) for the opportunity to make an interactive demo.<\/p>\n<p>Features:<\/p>\n<ul>\n<li>Textured meshes exported from 3DS Max in OBJ format, then saved as a serialized format by the game<\/li>\n<li>Environment\/cube map to serve as a background<\/li>\n<li>Instanced geometry for faster drawing<\/li>\n<li>Samples from the environment to create a reflective metal effect<\/li>\n<li>Uses Cairo to render font glyphs to a texture, and composes them to make text<\/li>\n<li>Uses a deformable mesh to create an animated explosion<\/li>\n<\/ul>\n<p>In the game, the player shoots down enemy ships and scores points. The missles are shot from the player's ship outward depending on where the ship is pointing.<\/p>\n<p>The ship is controlled with the I,J,K, and L keys. Dragging the right mouse button can be used to rotate the camera, and the scroll wheel zooms in and out.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cml-a.com\/Projects\/3DShooter\/screen1.png\" \/><\/p>\n<p>Pressing 'S' will enable\/disable some sliders which control certain program parameters, used mostly for debugging\/testing.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cml-a.com\/Projects\/3DShooter\/screen3.png\" \/><\/p>\n<p>Pressing 'Z' fires a missile. If an enemy ship is hit by a missile, it disappears and the player's score is increased.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cml-a.com\/Projects\/3DShooter\/screen2.png\" \/><\/p>\n<p>The source code is compiled using Visual Studio 2008.<a class=\"menu\" href=\"https:\/\/cml-a.com\/Projects\/3DShooter\/3DShooter.zip\"><br \/>\nDownload binary (Windows .exe)<\/a><\/p>\n<p><a class=\"menu\" href=\"https:\/\/cml-a.com\/Projects\/3DShooter\/3DShooter.src.zip\">Download Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This game was made for a graphics course that had an open-ended choice of a final project. We were allowed to produce any sort of demo that used either OpenGL or raytracing techniques. I chose to do a use OpenGL (realtime) for the opportunity to make an interactive demo. Features: Textured meshes exported from 3DS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[121,178],"class_list":["post-1239","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-opengl","tag-software-development-project"],"_links":{"self":[{"href":"https:\/\/cml-a.com\/content\/wp-json\/wp\/v2\/posts\/1239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cml-a.com\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cml-a.com\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cml-a.com\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cml-a.com\/content\/wp-json\/wp\/v2\/comments?post=1239"}],"version-history":[{"count":0,"href":"https:\/\/cml-a.com\/content\/wp-json\/wp\/v2\/posts\/1239\/revisions"}],"wp:attachment":[{"href":"https:\/\/cml-a.com\/content\/wp-json\/wp\/v2\/media?parent=1239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cml-a.com\/content\/wp-json\/wp\/v2\/categories?post=1239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cml-a.com\/content\/wp-json\/wp\/v2\/tags?post=1239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}