{
  "version": 1,
  "canonical": "https://xaede.net/writing/xaede-game-engine-first-attempt",
  "title": "Xaede Game Engine - First Attempt",
  "description": "Moving from two OpenGL prototypes to a reusable game-engine framework, with the architectural choices and practical lessons behind that attempt.",
  "language": "en",
  "manifest": "https://xaede.net/representations/index.json",
  "contentHtml": "<article class=\"reading-page\"><header class=\"reading-header\"><nav class=\"page-breadcrumb\" aria-label=\"Breadcrumb\"><ol><li><a href=\"/\">Home</a></li><li><a href=\"/writing\">Writing</a></li><li><span aria-current=\"page\">Xaede Game Engine - First Attempt</span></li></ol></nav><div class=\"article-label\"><span>Archive edition / Legacy Xaede</span><time datetime=\"2009-06-09\">June 9, 2009</time><span>4 MIN READ</span></div><h1>Xaede Game Engine - First Attempt</h1><p class=\"byline\"><a href=\"/about\" rel=\"author\">Josh English</a></p><p class=\"edition-note\">From the original Xaede archive. This is historical writing, preserved in a new reading edition. Technical advice, tools and project status reflect the time of publication.</p></header><div class=\"reading-body prose\"><p>The goal behind the initial Xaede game engine was to take the lessons learned from the stage one and two prototypes to develop a ground-up first-person-shooter (FPS) game in C using the OpenGL application programming interface (API) with the simple direct-media layer (SDL) for windowing system interface (allows the same code to run natively on Windows, Linux and OS X).</p>\n<p>Milestone: January 28, 2006</p>\n<p>Began Xaede game engine implementation by creating a platform-independent type library, threading library, time and timing library, and socket handling library.</p>\n<p>Milestone: February 03, 2006</p>\n<p>Created the platform-independent file handling library, created first-in first-out (FIFO) stack and hash map libraries.</p>\n<p>Milestone: February 12, 2006</p>\n<p>Debugged the socket handling and file handling libraries. Created the texture library, loadable from BMP and TARGA images. Created the particle system, including an engine for particle processing with callback function algorithmic direction determination. Created a wrapper for the SDL true-type fonts (TTF) library, optimized against the OpenGL pipeline.</p>\n<p>Particle Engine: Explosion</p>\n<p><br>\nParticle Engine: Flame</p>\n<p><br>\nParticle Engine: Fire</p>\n<p><br>\nMilestone: February 17, 2006</p>\n<p>Enabled WAV sounds using SDL. Created divers for mouse and keyboard input. Solidified the particle engine system. Began creating particle engine effects – a flame effect and an explosion effect. Added OpenGL fog effects. Created a wrapper for the OpenGL lighting system.</p>\n<p>Milestone: February 18, 2006</p>\n<p>Created a static mesh system with internally-usable API. Added multi-texturing to the texture API. Added screen-shot rendering and recording to the rendering pipeline API. Added user-definable blending to the multi-texturing API.</p>\n<p>Milestone: March 08, 2006</p>\n<p>Created an algorithmic implementation of bump-mapping. Added an off-screen rendering buffer to act as a software-based frame-buffer. Created the first camera definition (an FPS camera using quaternions). Created a system to allow user-definable callback functions in the camera API. Added a system for stacking events for event-driven camera movement (e.g. follow-camera mode, etc.). Created an algorithmic implementation of parallax-mapping, finding that it is woefully inefficient compared to a shader-based implementation.</p>\n<p>Static Mesh Render</p>\n<p><br>\nStatic Mesh Render</p>\n<p><br>\nCombined Scene Render</p>\n<p><br>\nMilestone: March 29, 2006</p>\n<p>Created a texture-matrix manipulation API. Created a static 3D object to indicate camera position within the scene. Finalized the camera system with keyboard and mouse input for user-driven camera movment. Created a plugin to load Wavefront objects into the static mesh model for rendering and manipulation within the scene. Rewrote the polygon system (the supporting API layer under the static mesh) to contain any conceivable polygon type. Added an API function to the rendering pipeline for switching back and for the between 2D and 3D rendering modes. Added a render function to the mouse drive to indicate mouse screen position in 2D mode. Added a heads-up display (HUD) render as a cross-hair texture mapped against a single-sided polygon. Created the radial blur effect. Enhanced the off-screen rendering system. Added camera effects system (e.g. render the scene from any angle and location, then blit the render to the current scene render) to support gun- and helmet-cameras.</p>\n<p>Milestone: April 02, 2006</p>\n<p>Performed further research into the SDL TTF system, found that fonts can be bound to OpenGL textures, however the frame-rate of the rendered output was the same. Enhanced the Wavefront object API to handle OpenGL materials, added helper functions to load a material (.mtl) file if a corresponding one exists for an object (.obj) file. Corrected gimbal-lock in the camera system and invalid rotations in the camera system.</p>\n<p>Combined Scene Render</p>\n<p><br>\nTree Static Mesh</p>\n<p><br>\nRadial Blur Effect</p>\n<p><br>\nMilestone: April 05, 2006</p>\n<p>Re-created the HUD rendering system as a GUI widget. Move the static polygon indicating positing within a 3D scene to the GUI package. Created a billboarding system to correct the angle of the particles within the particle engine to face towards the current camera.</p>\n<p>Milestone: May 12, 2006</p>\n<p>Worked to determine if inherent culling in OpenGL from the visible frustum is sufficient for optimal frame-rates or if a more sophisticated system should be implemented. Determined that it is not a very efficient system, and determined that one does not want to make calls to OpenGL when one does not have too (i.e. coordinates that are outside the visible frustum). Made these determinations by loading large static meshes (Wavefront object files of 3rd-party game levels). Created a geometric-plane-based frustum culling system. Enhanced the static mesh API to use frustum culling, OpenGL display lists, and inverted rendering. Enhanced the Wavefront object plugin to handle heretofore unknown object formats and to gracefully handle missing and erroneous data.</p>\n<p>Static Mesh Render</p>\n<p><br>\nPhysics System Render</p>\n<p><br>\nPhysics System Render</p>\n\n<p>Project Statistics</p>\n<ul>\n<li>Language: C++ (lines of code: 25,057)</li>\n<li>External libraries used: OpenGL, SDL, SDL-TTF, ODE</li>\n</ul></div><footer class=\"article-footer\"><span class=\"eyebrow\">PUBLICATION RECORD</span><p>Recovered article · Legacy Xaede · June 9, 2009</p><p>Originally published on Xaede. The recovered text is included in this reading edition.</p><p class=\"small\">Original authorship and publication date are preserved. This edition restores the reading layout. Recovered historical images are hosted here; unavailable images are identified where relevant.</p></footer></article>",
  "structuredData": {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "Person",
        "@id": "https://xaede.net/#josh-english",
        "name": "Josh English",
        "url": "https://xaede.net/about",
        "sameAs": [
          "https://github.com/josh-english-2k18",
          "https://medium.com/@jengas",
          "https://www.linkedin.com/in/joshua-s-english",
          "https://x.com/JoshSeriesAI"
        ],
        "jobTitle": "VP of Engineering",
        "description": "Josh English is VP of Engineering at Chronicle Media and was previously CTO of Series Entertainment. His career spans more than twenty-five years of distributed systems, game technology and engineering leadership. At Google he worked as a lead engineer on large-scale services and applied ML; at Big Run Studios he led multidisciplinary technology teams across seven time zones and four countries. At Series he directed engineering, QA, DevOps and infrastructure supporting live commercial games and AI-enabled production. He also builds personal games and developer tools to investigate how emerging capabilities work in practice, and writes about engineering judgment, organisation design and product economics.",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/about#webpage"
        }
      },
      {
        "@type": "WebSite",
        "@id": "https://xaede.net/#website",
        "url": "https://xaede.net/",
        "name": "Xaede",
        "alternateName": [
          "Xaede.net",
          "Josh English — Xaede"
        ],
        "inLanguage": "en",
        "publisher": {
          "@id": "https://xaede.net/#josh-english"
        }
      },
      {
        "@type": "WebPage",
        "@id": "https://xaede.net/writing/xaede-game-engine-first-attempt#webpage",
        "url": "https://xaede.net/writing/xaede-game-engine-first-attempt",
        "name": "Xaede Game Engine - First Attempt",
        "description": "Moving from two OpenGL prototypes to a reusable game-engine framework, with the architectural choices and practical lessons behind that attempt.",
        "inLanguage": "en",
        "isPartOf": {
          "@id": "https://xaede.net/#website"
        },
        "about": {
          "@id": "https://xaede.net/#josh-english"
        },
        "mainEntity": {
          "@id": "https://xaede.net/writing/xaede-game-engine-first-attempt#article"
        },
        "breadcrumb": {
          "@id": "https://xaede.net/writing/xaede-game-engine-first-attempt#breadcrumbs"
        }
      },
      {
        "@type": "Article",
        "@id": "https://xaede.net/writing/xaede-game-engine-first-attempt#article",
        "name": "Xaede Game Engine - First Attempt",
        "headline": "Xaede Game Engine - First Attempt",
        "description": "Moving from two OpenGL prototypes to a reusable game-engine framework, with the architectural choices and practical lessons behind that attempt.",
        "author": {
          "@id": "https://xaede.net/#josh-english"
        },
        "inLanguage": "en",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/writing/xaede-game-engine-first-attempt#webpage"
        },
        "genre": "Archive edition",
        "datePublished": "2009-06-09",
        "wordCount": 762,
        "url": "https://xaede.net/writing/xaede-game-engine-first-attempt"
      },
      {
        "@type": "BreadcrumbList",
        "@id": "https://xaede.net/writing/xaede-game-engine-first-attempt#breadcrumbs",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://xaede.net/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Writing",
            "item": "https://xaede.net/writing"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "Xaede Game Engine - First Attempt",
            "item": "https://xaede.net/writing/xaede-game-engine-first-attempt"
          }
        ]
      }
    ]
  }
}
