Shawn Hargreaves' Blog

Game programming with the XNA Framework
0 comments
8 followers
101 entries
Advertisement
shawnhar
November 19, 2010
Compressed vertex data
Compressed data is a great thing, especially when the GPU hardware is able to decompress it for free while rendering. But what exactly does vertex data compression mean, and how do we enable it?

XNA defaults to 32 bit floating point for most vertex data. For instance the VertexPositionNormalTextur…
910 views
shawnhar
November 19, 2010
Compressed GPU data formats
Consider the flow of data through a typical game:

  • Customer downloads game from Marketplace
  • Game data is stored in the filesystem
  • Game loads the data
  • Data is stored in memory
  • CPU or GPU fetches data from memory
  • CPU or GPU does awesome cool stuff with the data Making the data smaller has benefits a…
  • 646 views
    shawnhar
    November 15, 2010
    StitchUp: generating shaders from HLSL fragments
    Back in 2004 I wrote an article for a book called ShaderX3 about how to tackle the shader permutation problem by automatically generating shaders from combinations of smaller code fragments.

    Now Tim has created an XNA 4.0 implementation of this same idea. Sweet! (not to mention very flattering f…
    660 views
    shawnhar
    November 11, 2010
    Teaching myself not to procrastinate
    I have a theory that agonizing over difficult decisions is always a waste of time.

    To decide between two or more options, we must predict how good an outcome each choice will produce. Decisions are only difficult when this is an approximate estimate, because if we knew for sure, we'd just pick the…
    552 views
    shawnhar
    November 11, 2010
    Procrastinating perfectionism
    I find it fascinating to watch how different programmers tackle problems in different ways. Some like to think things through until they fully understand the optimal solution, then code it up in one quick burst. Others prefer to get something up and running as fast as possible, then iterate to grad…
    569 views
    shawnhar
    November 03, 2010
    PDC talks available for download
    PDC talks are now available to download in WMV or MP4 format, as well as for online streaming.

    Mine is here:





    Source
    649 views
    shawnhar
    October 28, 2010
    Free e-book by Charles Petzold
    Check this out.

    It's a book.

    It's about programming Windows Phone using Silverlight and XNA.

    It's by a hero of mine.

    And it's a free download!







    Source
    489 views
    shawnhar
    October 28, 2010
    Channel 9 Live at PDC
    As if live streaming of my upcoming PDC talk was not enough, I'll be doing a Q&A on Channel 9. Friday October 29th, 10:00 AM PST.

    If you have questions you'd like me to address, tweet them @ch9live, or submit a question into the PDC10 Session Q&A panel on the right hand side of the video …
    522 views
    shawnhar
    October 27, 2010
    PDC sneak preview #2
    A screenshot of the demo from my upcoming PDC talk:





    Cats are of course to be expected from me, but this year there are dogs too!

    Day after tomorrow, live streaming from http://www.microsoftpdc.com



    Source
    516 views
    shawnhar
    October 25, 2010
    Sneak preview of my PDC talk
    When I read the Swallows and Amazons books as a kid, I loved the "this is what it looked like at night" illustration, which was a page colored solid black.

    Years later, I finally found an excuse to use this classic image in a PowerPoint deck:





    Would you believe this actually makes sense i…
    512 views
    Advertisement

    Popular Blogs

    shawnhar
    Generalist
    101 Entries
    8 Followers
    15 Entries
    9 Followers
    johnhattan
    Programmer
    1,277 Entries
    46 Followers
    ApochPiQ
    Generalist
    628 Entries
    43 Followers
    dgreen02
    Generalist
    338 Entries
    55 Followers
    Advertisement