Digital test cards for games

Don't you hate it when you're writing some new image loading or texture drawing code but don't have any suitable test images? I always waste lots of time looking for a "nice" image to test with, and often end up drawing something with distict pixel values so I can pinpoint where any given image loading bug is. With that in mind I've spent a few evenings working on a proper "test card".

TV test cards are a rare sight on broadcasts these days, with most digital channels choosing to just have a blank screen when a channel is off air, but pretty much everyone in the uk will have the famous Test Card F burnt into their retina at some point. Test card design is rather facinating, as all the various elements (blocks of colour, diagonal stripes, etc.) are designed to allow particular elements of a broadcast or tv configuration to be tested and tweeked.

Most of them aren't relevent to games though, since we don't have to worry about scan amplitudes and all that mumbo jumbo. Mostly we're concerned about getting binary data off disk and accurately displaying that on the screen (dealing with file formats, endianness, and display surface formats in the process). So while Test Card F is nice and iconic, it's not really suitable for our use.

Here's a couple of my old (crude) test images:

They're not bad, but by todays standards they're a little small, the nicer Tails one is an awkward 48x48 and neither of them are good when you're trying to debug file format, image pitch or similar issues since the borders and colours aren't terribly helpful.

With those issues in mind, here's my new test card:

This breaks down as:
1. Well defined an unique border pixels make it easy to see if you're displaying the whole image or if you've sliced off an edge accidentally.
2. The main circle shows is for judging aspect ratio, and making sure you've not accidentally streched or squashed it.
3. The checkered edge markings are every 8 pixels, so you can line things up easily.
4. Various pixel patterns in the corners for checking 1:1 pixel drawing.
5. Colour and greyscale bars and gradients for general colour/gamma correction and to highlight colour precision issues.
6. Ticks mark the center of each edge for alignment.
7. Tails is always cool. [grin] Replace with your own favorite character as you see fit. The image and the text make sure you're displaying it at the correct orientation and not flipping or mirroring it.
8. The empty box at the bottom is left blank for you own logo or text.

One nice "feature" is the very outer border, here's a close up of the top left corner:

The start of the scanline starts with easily identifiable red, green and blue pixels (which show up as nice round non-zero, non-FF, hex numbers in a debugger's memory window) which are similar to a text file's byte-order mark. Just after that the desaturated colours spell out (again, when viewed in a debugger's memory view) "RedGreenBlue TestCardA 256x256". Of course if you're actually loading from a BGR image format that'll just be a row of junk characters, so directly after that the message is repeated (this time "BlueGreenRed TestCardA 256x256). This allows you to easily identify if you've actually calculated the start position of the image header from your image file and that you're reading it in in the right format and endianness - if you can read "BlueGreenRed" when you were trying to load a RGB image, you know you've messed something up somewhere. :)

The top right has a similar terminating series of characters:

This time it's a slightly different hex pattern for the numbers so you can distinguish the start of one scanline from the next. Similarly the rest of the image has two distinct colours all the way down the edges. These are particularly useful when debugging misaligned image data or pitch issues. The bottom row contains the same encoded messages for those crazy image formats which are stored bottom up rather than top down.

So there you go. Use it, modify it, abuse it however you see fit. If I get chance I think I'm going to produce a few variants for lower resolutions (maybe 128x128 and 64x64) plus RGBA versions for testing alpha channels. And suggestions for improvements or tweeks are welcome.

Licensed under Creative Commons 2.0.

77 Responses to “Digital test cards for games”

  1. Dave TZ Says:

    There’s always got to be Tails involved in there somewhere. ;)

    Neat image, by the way. I’ve always just mocked up really simple images for my tests, such as circles and stars in squares.

  2. paulo Says:

    Hey, i just want to say i’m not able to access the help button in the analog map editor, since you appear to use a webserver.

    I was actually looking for the way to load/code the map inside a slick game.

    The error it gives, is this after the windows firewall blocks the program :

    The requested URL could not be retrieved


    While trying to retrieve the URL:

    The following error was encountered:

    Connection to Failed
    The system returned:

    (111) Connection refusedThe remote host or network may be down. Please try the request again.

    Your cache administrator is


    Generated Sat, 19 Sep 2009 04:00:26 GMT by (squid/2.6.STABLE17)

  3. JC Says:

    Hello! Analog uses a local web server to display the help pages – so by blocking it with your firewall it won’t be available. You’ll have to tell your firewall to unblock it (or get a decent firewall, like ZoneAlarm, which doesn’t freak out on localhost connections since they’re harmless).

    Using Analog with Slick should work nicely, feel free to post on or hang out in #lwjgl if you need a hand with anything.

  4. computer repair chicago Says:

    computer repair chicago…

    [...] » Blog Archive » Digital test cards for games[...]…

  5. minecraft gratuit Says:

    What’s up to every one, it’s actually a pleasant for me
    to go to see this web page, it includes helpful Information.

  6. Meredith Bren Says:

    Which i imagined the particular whole world could burst when the Rock in addition to Vin Diesel powered have been ever in the similar film with each other.

  7. Computer Repair Bancroft Says:

    hello there and thanks to your info ? I have certainly picked up something new from proper here. I did however expertise a few technical points using this web site, as I experienced to reload the web site many times prior to I may just get it to load correctly. I have been brooding about if your web hosting is OK? No longer that I’m complaining, but sluggish loading instances instances will very frequently have an effect on your placement in google and could harm your high-quality score if advertising and marketing with Adwords. Well I am adding this RSS to my email and could look out for a lot more of your respective fascinating content. Ensure that you update this once more very soon..

  8. Marcelino Says:

    You need to focus on the lookout for a few foundation repair contractor will benefit from constant good quality general
    contractor has submitted their timesheet. You should therefore
    take some time, trips to 5 years, but contractor critical considerations.
    You would be quite helpful. If not, they can design and fittings, switches, electric meters, circuit breakers,
    metering and what will happen? Some lure you
    in making this kind of professional affiliations.
    These are few and far between, it gives customer agencies do is hire the best roofing solution at reasonable cost with easy navigation and great tools.

    Here is my web-site … web site (Marcelino)

  9. アルマーニ Says:

    現在の日の付属品を考慮するがつま先プラチナは実際に豊富な情報を取り込み。インドの亜大陸でつま先ジュエリーは知られているヒンディー語のアクセス可能な bichiya があった。これらのあなたの常に変化する傾向は密接に産業を含まれ、現在自分自身と完全に通知を与える見つけます。写真の周り bootie 捨て、あなたのリーダー人のパック、スターリング クリスチャンル ブタン。それはスエードを収容し、牛革と単にメーカーを与えます。

  10. Zora Says:

    I pay a quick visit daily a few web sites and blogs to
    read articles, however this blog gives quality based content.

  11. Firstgametube.Com Says:

    Hi, Awesome publish. Likely to concern along with your web site inside traveler, might check this? Firefox still is the industry main and also a massive a part of folks will omit your spectacular publishing because of this issue.. game

  12. local and Licensed general contractors Says:

    Hi there all, here every one is sharing these kinds of knowledge, so it’s
    good to read this website, and I used to pay a visit this weblog daily.

  13. Says:

    I relish, result in I found just what I used to be having a look for.
    You have ended my four day lengthy hunt! God Bless you man. Have a great day.

  14. Says:

    You do not want to have sore hands because the paddles are too big around.
    Even in today’s tough economic times, you can still have an opportunity to use inexpensive,
    but the quality of recreational options for you and your entire family without breaking the bank.
    If you intend kayaking with your kids or pets, remember to opt for the tondom kayak with three sitting spaces.

    Once a collection of equipment is bought, and most enthusiasts like all their
    own gear instead of hiring from certain vendors, it may be a good idea to stamp the equipment so
    that it will not get taken by mistake.

  15. twitter marketing walk an hour a day Says:

    It’s a relationship tool and relationships take time to develop.
    It is because your content is different and they cannot get this type of valuable content on other websites.
    This caused me to investigate automated Twitter Software that would take care of many of my Twitter tasks.

    Note: If you’re going to generate buzz for your company, give your fans a date
    and time as to when something will be announced – the same
    technique that movie trailers use.

  16. Jordan Concord 11 Says:

    Woah! I’m really loving the template/theme of this website. It’s simple, yet effective. A lot of times it’s hard to get that “perfect balance” between usability and appearance. I must say you’ve done a superb job with this. Also, the blog loads extremely quick for me on Safari. Exceptional Blog!

  17. canada goose jacket sale Says:

    Nothing is preventing anyone from standing up in a meeting saying anything,

  18. miu miu customer service Says:

    I really like what you guys are usually up too. Such clever work and coverage! Keep up the awesome works guys I’ve incorporated you guys to blogroll.

  19. cheap nfl jerseys wholesale usa Says:

    Wonderful blog! I found it while browsing on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Many thanks

  20. canada goose outlet Says:

    “Governments can’t just do you know and select for those times when for more information about help protect refugees

  21. ugg boots cheap Says:

    fake uggs boots,fake uggs boots uk,replica uggs boots,ugg boots cheap,ugg uk sale,cheap ugg boots,discount ugg boots,replica uggs uk,ugg boots uk,ugg boots outlet uk

  22. miu miu sneaker sale Says:

    Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why waste your intelligence on just posting videos to your weblog when you could be giving us something enlightening to read?

  23. Longchamp Bags Leather Says:

    I saw your post awhile back and saved it to my computer. Only lately have I got a chance to checking it and need to let you know good function.

  24. canada goose jacket Says:

    The South’s defence ministry last week called them an all in one clear military provocation” and said aspect had “smoking he allegedly proof that they had all been flown from North Korea

  25. wholesale jerseys best Says:

    It’s a shame you don’t have a donate button! I’d certainly donate to this superb blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to brand new updates and will share this website with my Facebook group. Chat soon!

  26. cheap soccer jerseys in the us Says:

    Hello just wanted to give you a quick heads up. The words in your article seem to be running off the screen in Firefox. I’m not sure if this is a format issue or something to do with browser compatibility but I figured I’d post to let you know. The style and design look great though! Hope you get the issue fixed soon. Thanks

  27. vmtpdmfrcc Says: » Blog Archive » Digital test cards for games
    vmtpdmfrcc http://www.g2×

  28. louis vuitton belt pouch holsters Says:

    Excellent site you have here but I was wondering if you knew of any discussion boards that cover the same topics talked about in this article? I’d really like to be a part of online community where I can get responses from other knowledgeable people that share the same interest. If you have any recommendations, please let me know. Bless you!

  29. canada goose outlet Says:

    Barcelona, and Manchester United through our game

  30. canada goose outlet montreal Says:

    not only can they probably for that matter discreetly influence how do you it is certainly plausible ballot all around the Kano, Nigeria’s second-biggest city, and surrounding areas, said Falola

  31. canada goose jacket outlet Says:

    Tony Gwynn, the Hall of Famer with a sweet left-handed swing who spent his entire 20-year career with the Padres and was one of San Diego’s most beloved athletes, died of cancer Monday

  32. canada goose jackets on sale Says:

    Feiffer was so taken by Angelou that he mentioned her to Random House editor Bob Loomis, who persuaded her to write a book by daring her into it, saying that it was “nearly impossible to write autobiography as literature

  33. canada goose outlet store Says:

    Last month,a multi function animal medical practitioner was asked on the basis of a multi functional Paris court to explore provide his analysis of a multi functional dalmatian’s reactions,as soon as the dog was shown going to be the faces about more than one assassinate suspects

  34. canada goose sale Says:

    Simultaneously, dozens of militants attacked a police station in the nearby town of Saqlawiya, forcing the police manning it to surrender

  35. canada goose jacket Says:

    Ted Cruz says the Obama administration is the fact for additional details on blame as well as for going to be the waves of immigrant your little one crossing going to be the border illegally

  36. ポロセットアップレディース Says:

    アグムートンモカシン コーディネイト
    エルメス 柄
    ナイキ ルナグライド 5 レビュー
    ペンケース 男性 プレゼント ヴィトン
    ポロシャツ コーデ メンズ 迷彩

  37. トリーバーチ お財布 コピー Says:

    女性 ビジネスバック
    ナイキ スニーカーブーツ
    ブルガリ イタリア
    エルメス 石鹸 ナイル
    バーバリーブルーレーベル コート ブログ
    アイホン6 手帳ケース
    グッチ gg エボニー
    トリーバーチ お財布 コピー

  38. kate spade キャンパストートバック 黒 Says:

    ドルガバ 偽物
    山登り 黒色 ジャケット
    ビスケットコート クロエ
    メンズ 財布 人気 芸能人
    セリーヌ 財布 激安
    カルティエ ボッデガ 彼氏
    kate spade キャンパストートバック 黒

  39. ダウンジャケット 価格 Says:

    ブルガリ ペンケース
    ダウンジャケット 価格

  40. セリーヌ ホーボー キャメル Says:

    シャネル a48616
    セリーヌ ホーボー キャメル

  41. 買取 スリーゴールド カルティエりんぐ Says:

    ヴィトン モノグラム バッグ 真贋
    ワイキキ セリーヌ専門店
    ナイキ ブーツ
    バーバリーブルーレーベル 2014 ワンピース
    巾着バック クロエ
    ボッテガヴェネタ 名刺入れ 定価
    財布 裏地柄
    プラダカナパトート 本物 偽物の見分け方
    シャネル ピアス コピー
    コーチ メンズ 財布 古い
    三越 cartier キーケース

  42. 調節 ドレス Says:

    スケボー pvc
    コーチ 黒のバッグに金のロゴ
    ugg ムートンサンダル 口コミ

  43. 赤茶 2014 Says:

    赤 ティンバーランド 限定 赤

  44. ケイトスペード バッグ高松三越 Says:

    コーチネックレス 名古屋
    ケイトスペードサタデー 阪急百貨店

  45. トリーバーチ長財布ゴールド Says:

    ディオール 財布 クリスマス限定
    コンバース オールスターコーデ
    chanel coco柄 クラッチバッグ ヴィンテージ
    サックス キーホルダー コーチ
    ホワイト トリーバーチ キルティング フラット

  46. アダムスゴルフ Says:

    bag In time got You Down? Now We Have The Right Formula

  47. ミュウミュウ 2014年春夏 マドラス加工 財布 Says:

    ナイキ ブレーザー メンズ
    男 アグ モカシン 履く
    ダンヒル 免許証入れ
    ニューバランス 576 黒
    プラダジャパン カスタマーサービス
    モンクレール 松坂屋 名古屋 モンクレール クリーニング 姫路 モンクレールダウン 芸能人

  48. ピーカブー???? Says:

    シーバイクロエ デニム バッグ
    ニューバランス m1700 コーデ

  49. tiffany バイザヤード Says:

    こんにちは!私はこれにしてきた宣誓かもしれない前に、しかし後に{読書|ブラウジング|チェックポストのいくつかを、私はそれが私には新機能が実現。 とにかく、私は間違いだうれしい私はそれを発見し、私はなるだろうブックマークとバックチェックしばしば!
    tiffany バイザヤード

  50. buy nfl jerseys cheap from china Says:

    We stumbled over here different web page and thought I should check things out. I like what I see so now i’m following you. Look forward to checking out your web page yet again.

  51. コピーブランドセカンドバック紳士物 Says:

    プラダ リボンバック 黒ナイロン
    iphoneケース エメラルド
    コーチ ヘリテージ ウェブ レザー スリング
    ニューバランス かわいい靴
    ファー バッグ fendi
    MCM 財布
    ルイヴィトン ポシェットボスフォール コピー
    ケイトスペード 2462 バッグ

  52. vue ray ban velvet underground Says:

    “La moda costituisce una parte predominante delle nostre scelte e mostra sia il nostro carattere sia un bisogno di estrema personalizzazione. L’ordinario di Re Fuse e lo straordinario di Private Session si collegano tra loro in una sorta di presente continuo e circolare con il corrispondente atto del riuso da un lato e dell’unicità dall’altro. Un’attualità complessa e bi fronte che amo tradurre nelle mie creazioni. Beyond è il perfetto esempio della creazione di una collezione che incarna il prossimo bisogno, in termini di forme e materiali, nuovi orientamenti ed inediti scenari geometrici da applicare all’arredo d’interni.”Vick Vanlian

  53. ミュウミュウバイカラートート Says:

    ディオール 時計 メンズ 買取
    バーバリー冬 ワンピ激安
    ティンバーランド ブーツ大きさ
    スウェット ナイキ

  54. cheap nike packer jerseys Says:

    In this awesome pattern of things you’ll receive a B+ just for effort and hard work. Exactly where you misplaced us was first on the particulars. As as the maxim goes, details make or break the argument.. And that couldn’t be much more correct here. Having said that, permit me say to you what exactly did do the job. Your article (parts of it) is really persuasive and that is most likely the reason why I am making an effort to opine. I do not really make it a regular habit of doing that. Second, even though I can easily notice a leaps in reasoning you come up with, I am not really certain of how you appear to connect your points that help to make the final result. For the moment I will, no doubt subscribe to your issue however wish in the foreseeable future you actually connect your dots better.

  55. ケイトスペード ポシェット リボン Says:

    セリーヌ 直輸入
    カチューシャ ブルガリ
    ハワイ アグ ビーサン
    モンクレール 価格ドットコム モンクレール ダウン 定価
    阪急梅田 ケイトスペード 何階?

  56. ナイキ acg とは Says:

    カルティエ 宇都宮
    mcm リュック ベージュ
    ヴィトン長財布 黒 いくらで売れる?
    クロエボディクリーム 京都のデパート
    渋谷 ビーチバッグ
    セリーヌ トリオ ラージ 定価
    ナイキ ヴィンテージ スニーカー 復刻

  57. セリーヌ ショルダー紐 Says:

    クロエボディクリーム 京都のデパート
    シャネル パロディ 靴 楽天
    アグムートンモカシン コーディネイト

  58. online shopping canada 2000 airlines Says:

    I do believe Apple company will probably include several of this particular things yearly iPad update, due to the fact My spouse and i ask yourself why ipad device should not feature prefers of: UNIVERSAL SERIAL BUS Interface, Multi-tasking, Drag-n-drop File Operations, SECURE DIGITAL port and also other very important program as well as components to get a pill program.
    online shopping canada 2000 airlines

  59. longchamp pas cher Says:

    checked out demonstrate just about all undetectable data under server but still not any htaccess data. we dont buy it. this is mad, much guide needed right here. all i would like to do is actually manage to publish plug ins on squidoo hey jamesi enhanced coming from starhub cable television broadband internet 40 mbps to be able to food fibre braodband 75 mbps and i also find that fibre is actually more slowly when compared with cable connection along with becos on the hype provided above nutritional fibre created the particular change and found this fresh leveling bot router furthermore can not utilize not really compatiblebetter to keep to cable tv broadbandbest rgdshozefa

  60. ipad air メッセージバック Says:

    大宮sogo バーバリー店舗どんな?
    白 ナイキ スニーカー
    カルティエ サントス ドゥモワゼル

  61. ヴィトンジュアン Says:

    gucci バッグ コピー 安心
    ダンヒル 偽者 財布
    クロエ レザーコスメポーチ エヴァ
    ugg デニムムートン
    靴 ナイキ
    シャネル 車
    トリーバーチ 年齢
    モンクレール 家で洗濯
    ヴィトンジッパー ガレ 汚れ

  62. 松本恵奈 セリーヌ Says:

    アウトレット グッチ 財布
    仙台カルティエ 時計ベルト 交換
    ヴェノム ナイキ
    モンクレール ザザホラヤ
    celine バスローブ

  63. トリーバーチ 白 キルティング バレエシューズ ユナイテッドアローズ Says:

    新作ディオール コスメアイシャドウワインレッド
    ナイキ フォージドアイアン 三浦技研
    supreme iphoneケース ゴールド 偽物
    アグムートンモカシン コーディネイト
    リュック フリンジ
    ケイトスペード saturday ポーチ
    tory burch 関空

  64. ダンヒル 財布 メンズ 長財布 アウトレット Says:

    シャネル 車
    ニューバランス かわいい靴
    ケイトスペード 時計三越仙台
    ヴィトン バスタオル 結婚祝い
    レザースタッズ ugg
    コンバース オールスター ボア付きファスナー
    皮 ナイロン イタリア 鞄
    トラベル ダンヒル ショルダーバッグ

  65. ケイトスペード 鞄 ハワイ Says:

    モンクレール セットアップ コピー モンクレールダウン マヤのカーキ色 モンクレール ミラノ 営業時間
    プラダ ナイロンバッグ 激安
    ディオール すずらん メンズ
    カルティエ 釘をモチーフにしたバングル
    ケイトスペードサタデー サンダル

  66. gucci 子供 安い Says:

    キーケース メンズ ダンヒル
    大阪空港 免税店 chanel
    靴と財布 メンズ
    ミュウミュウ 偽物と本物 違い
    ダイヤモンド カルティエ ネックレス

  67. cheap 2014 nfl super bowl jerseys Says:

    My coder is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using Movable-type on numerous websites for about a year and am nervous about switching to another platform. I have heard excellent things about Is there a way I can import all my wordpress content into it? Any help would be really appreciated!

  68. tumi スーツケース 重量 Says:

    インターネットのそれほどではない読者は正直に言うとが、あなたのサイト本当に素晴らしい、それを維持する!私が先に行くと、あなたのブックマークう|後で戻ってきてサイトサイトを。 すべてのベスト
    tumi スーツケース 重量

  69. セリーヌ ベビードレス Says:

    ニューバランス ml574 golf
    gucci ハンドバッグ ポーチ 買い取り価格
    コンバースの靴ひも 通し方

  70. buy canada goose jacket online Says: moncler ski suit

  71. replica monlcer jackets Says:

    Canada Goose UK,Cheap Canada Goose,Canada Goose Outlet UK,Canada Goose UK,Cheap Canada Goose,Canada Goose Jackets,Canada Goose Sale,Canada Goose Black Friday,Canada Goose UK,Canada Goose Parkas

  72. iphone5cgucciカバー Says:

    プラダ長財布 ネイビー
    ボリード ブログ
    バリー 通販
    burberrys レンタル
    gucci iphoneケース 売ってるところ

  73. moncler france Says:

    to get integrated, are actually are generally escape with demand this aspect (low bandwidth hats, Heavy Packet Inspection, bandwidth throttling and also insurers are progressively purchasing pricey and fungible programs that incorporate heavy supply check up systems. To balanced out products charges, these same carriers are usually commited to use their agotable products for you to Is in fact an outstanding in addition to valuable part of information. I am satisfied that you can shared this valuable info around. Remember to remain you current this way. Many thanks for sharing.

  74. キャンパスジ シャネル Says:

    ケイトスペード チェーンバック
    アウトレット グッチ 財布
    ガーデンパーティ 風 トートバック
    大阪空港 免税店 chanel

  75. 革財布ヘルツ手入れ Says:

    カルティエ サントス
    プラダ ジーンズ 日本

  76. gucci 短財布 黒 茶色 Says:

    プラダ ジーンズ 日本

  77. chicago burberry show Says: burberry buy 9mm pistol

Leave a Reply