GPU Programming For Easy & Fast Image Processing

If you ever need to manipulate images really fast, or just want to make some pretty fractals, [Reuben] has just what you need. He developed a neat command line tool to send code to a graphics card and generate images using pixel shaders. Opposed to making these images with a CPU, a GPU processes every pixel in parallel, making image processing much faster.

All the GPU coding is done by writing a bit of code in GLSL. [Reuben]’s command line utility takes that code, sends it to the graphics card, and returns the image calculated by the GPU. It’s very simple for to make pretty Mandebrolt set images and sine wave interference this way, but [Reuben]’s project can do much more than that. By sending an image to the GPU and performing a few operations, [Reuben] can do very fast edge detection and other algorithmic processing on pre-existing images.

So far, [Reuben] has tested his software with a few NVIDIA graphics cards under Windows and Linux, although it should work with any graphics card with pixel shaders.

Although [Reuben] is sending code to his GPU, it’s not quite on the level of the NVIDIA CUDA parallel computing platform; [Reuben] is only working with images. Cleverly written software could get around that, though. Still, even if [Reuben]’s project is only used for image processing, it’s still much faster than any CPU-bound method.

You can grab a copy of [Reuben]’s work over on GitHub.

Hacking Wing Commander For Windows 7 Compatibility

For everyone using  a later version of Windows like Vista or Windows 7 they will probably never get to enjoy the awesomeness that was Wing Commander…until now. [Jari Komppa] has managed to use DirectDraw to his advantage and hack out a solution to this disappointing problem.  He used DirectX to do this and has even managed to get OpenGL to load from a DLL after a few problems with Windows XP and Windows 7.  This is truly a step forward in retro gaming.  No more should we have to load a virtual machine to play Starcraft.  Hopefully getting this ported to even older games such as Sim Farm or Commander Keen are on the way!

OpenGL On The Didj

[youtube=http://www.youtube.com/watch?v=nfXI0crLTBc]

[Losinggeneration] managed to get a homebrew OpenGL application working on the Didj. It’s nice to see the community driven work advance on this device but something else also caught our attention from the forum post. Another poster pointed out that [losinggeneration] has files in one of his directories called “glquake-didj” and “glquake-didj.dbg”. We hope that means a working version of Quake is on the way for the hackable handheld.

[Thanks JJ Dasher]

Orientation Aware Camera


[Andrew Magill] just added his Orientation Aware Camera to the Hack a Day Flickr Pool. It uses a 3-axis magnetometer and 3-axis accelerometer. He didn’t want to spend too much effort on the USB side so he picked up USBMicro’s U421. It’s a fairly well documented preprogrammed microcontroller for USB. He later regretted this; his final sample rate was only 5Hz because of all the overhead. Using the positional data the, webcam image can be corrected for any sort of shaking. [Andrew] took this one step further by using OpenGL and stitching all of the video frames together live into a full panorama. Be sure to watch his excellent video demo embedded below. Continue reading “Orientation Aware Camera”