Share via


Why purple?

One of the things I'm going to try to do this year is write more on my blog.  The publisher for my books is hoping I'll write something new for them this year as well, although at the moment I don't know if I'd have the time, or what I'd write about anyway..  Anyone have suggestions on topics they'd like me to cover in a book or a blog post?  Shawn normally goes a great job staying ahead of the curve so the possibilties of topics diminishes some. =)

So for now I'm just going to post a random anecdote that was asked in our internal alias one day..  Why does the framework clear the targets (render targets, back buffer) to purple when RenderTargetUsage.DiscardContents is turned on?

When I originally implemented that feature, I wanted something that jumped out at me and was extremely noticeable.  I picked the brightest, most obnoxious shade of neon green I could.  It did the trick, it was instantly noticeable when it was there.  As time went on though, I kept seeing it all the time, day in, day out, over and over again.  It irritated me something fierce and eventually I decided I just had to change it to something much less obnoxious, so I picked a dark purple.  The intention was to switch it back to the bright neon green before we shipped to ensure everyone got to experience the joy that was that color.

As time went on though, we all got used to the purple.  It was pretty quickly and easily recognized and that was the goal for the clear to begin with.  Why torture everyone's eyes and have them all hate me when everyone is soothed by the purple?

So, why purple?  To avoid the hate mail that would have come from the original neon green!

Comments

  • Anonymous
    February 21, 2008
    Welcome back... Next post 'why cornflower blue'

  • Anonymous
    February 21, 2008
    Interested to hear your thoughts regarding:

  1. where you see GPU computing headed and whether it could/should be wrapped into XNA, particularly for physics (ala nVidia CUDA + Ageia) and GPGPU
  2. separate, but closely related...what's up with:   a) managed D3D10?   b) MS Accelerator? Thanks!
  • Anonymous
    February 21, 2008
    > "Next post 'why cornflower blue'" ... a/o why 'XNA' ...

  • Anonymous
    February 22, 2008
    "Xtreme Neo Action" "Xero Never Adds" "Xerver Not Available" How did you guys come up with the word "XNA"?

  • Anonymous
    February 23, 2008
    Maybe ... http://amapplease.blogspot.com/2008/02/whats-meaning-of-xna.html I know, I know, too much coffe for me!

  • Anonymous
    February 23, 2008
    Nice to see you back on blog;). Your first book teach me how to do game programming, now we have xna and lots of "beginner" books/articles out there. So if you'll write a new book, i expect it would be a more advance one.