Slashdot Mirror


Code Review of Doom For the iPhone

Developer Fabien Sanglard has written a code review for id Software's iPhone port of Doom. It's an interesting look into how the original 1993 game (which he also reviewed to understand its rendering process) was adapted to a modern platform. "Just like Wolfenstein 3D, Doom was rendering a screenframe pixel per pixel. The only way to do this on iPhone with an acceptable framerate would be to use CoreSurface/CoreSurface.h framework. But it is unfortunately restricted and using it would prevent distribution on the AppStore. The only solution is to use OpenGL, but this comes with a few challenges: Doom was faking 3D with a 2D map. OpenGL needs real 3D vertices. More than 3D vertices, OpenGL needs data to be sent as triangles (among other things because they are easy to rasterize). But Doom sectors were made of arbitrary forms. Doom 1993's perspective was also faked, it was actually closer to an orthogonal projection than a perspective projection. Doom was using VGA palette indexing to perform special effect (red for damage, silver for invulnerable...)."

6 of 161 comments (clear)

  1. Interesting... by Anonymous Coward · · Score: 0, Troll

    http://www.nytimes.com/2010/02/04/us/politics/04scotus.html?hp

    FTA: “Go back and read why Tillman introduced that legislation,” Justice Thomas said, referring to Senator Benjamin Tillman. “Tillman was from South Carolina, and as I hear the story he was concerned that the corporations, Republican corporations, were favorable toward blacks and he felt that there was a need to regulate them.”

    I just find it interesting that Democrats are always on the wrong side of racial issues. Always. Whether it's American slavery, the Civil War, Reconstruction, Eugenics, or the modern-day example of how they strive to keep minorities enslaved on the government entitlement plantation. It's interesting to look at the vote totals by party in both houses of Congress for the Civil Rights Act of 1964: http://en.wikipedia.org/wiki/Civil_Rights_Act_of_1964#Vote_totals. Once again, Republicans led the way for racial justice - and as a result the Democrats lost the South. And yet minorities still vote overwhelmingly for Democrat candidates, despite the mountain of evidence that Democrats want to keep them ideologically and materially enslaved, and Republicans want to see them be able to stand on their own two feet. I just don't understand...

  2. Re:He's wrong though by jaggeh · · Score: 0, Troll

    The anonymous coward has a point! Beleive his unsupported claim at once!

    --
    I would give everything i own for a little bit more.
  3. Re:A little off topic. by jaggeh · · Score: 0, Troll

    down up left left A right down

    idkfa

    supercalifragisexy

    L R L R ABBABBA

    scotty me up beamie

    --
    I would give everything i own for a little bit more.
  4. Re:Already done by Rogerborg · · Score: 0, Troll

    And the iPhone runs OpenGL ES, so what's your point again?

    --
    If you were blocking sigs, you wouldn't have to read this.
  5. Re:What's with this CoreSurface licensing restrict by anomnomnomymous · · Score: 0, Troll

    What was that RMS was saying again?

    "Oooh, there's something eatable in between my toes: Shall I eat it?!"

    Or were you referring to another quote of him?

    --
    When you shoot a mime, do you use a silencer?
  6. Re:What's with this CoreSurface licensing restrict by TheVelvetFlamebait · · Score: 0, Troll

    Hmm. I think you're the one who's confused.

    Making these tools free to use is pragmatic, and could come from any reasonable advocate of free software.

    Hard line refusing to use proprietary software/platforms is more RMS's philosophy, and is, for most people, not at all pragmatic.

    Does that clear things up?

    --
    You know, there is a difference between trolling and pointing out the flaws in your reasoning. Just saying.