09-24-2002, 08:30 PM
Hey there, I just wanted to tell people about this image debugging utility I wrote. It's not actually OpenGL-related, but it should be useful for a lot of Win32 OpenGL programmers (since that's what I do, and that's what I wrote it for). Basically it's a small Win32 library that contains a single function: imdebug(...). imdebug(...) is basically like a graphical printf() for images. All it takes is one call to imdebug and you can have an image up on the screen.
It's handy if you're writing code that deals with a bunch of textures, for example, and the textures aren't showing up properly. You can call imdebug() on the texture data just before your call to glTexImage2D to make sure you're uploading what you think you're uploading.
It is actually handy if you're writing pretty much any code involving 2D data, not just images, actually. It's also very handy if you're writing something like a raytracer and don't want to bother with writing a bunch of code to display the results of your raytracer right at first, but you'd still like something more immediate than saving the image to a file and loading it up in another program.
Anyway, here's the URL: http://www.cs.unc.edu/~baxter/projects/imdebug
Check it out and let me know what you think!
--bill baxter
--unc chapel hill
It's handy if you're writing code that deals with a bunch of textures, for example, and the textures aren't showing up properly. You can call imdebug() on the texture data just before your call to glTexImage2D to make sure you're uploading what you think you're uploading.
It is actually handy if you're writing pretty much any code involving 2D data, not just images, actually. It's also very handy if you're writing something like a raytracer and don't want to bother with writing a bunch of code to display the results of your raytracer right at first, but you'd still like something more immediate than saving the image to a file and loading it up in another program.
Anyway, here's the URL: http://www.cs.unc.edu/~baxter/projects/imdebug
Check it out and let me know what you think!
--bill baxter
--unc chapel hill