3 ms·
I've loved these kinds of demos since I first discovered them. For those not in the know, this is _the_ site for finding them: http://www.pouet.net/ http://www
by fpgaminer 10y ago
I've loved these kinds of demos since I first discovered them. For those not in the know, this is _the_ site for finding them: http://www.pouet.net/ http://www.pouet.net/
Though it didn't end up involving any procedural generation, I was tasked with cramming an OSD into an FPGA that was already using the majority of its resources. The device was processing an HDMI video stream and needed to display a menu and various other information to the user, for control and settings. All this at up to 1080p60. I ended up using about 16 KB of on-chip SRAM, if I recall correctly, and designed an old-school inspired GPU ala NES/SNES, with perfect alpha blending even! It was palette based, of course, and the memory is used to store sprites and a "command buffer". While pixels are flying through the GPU it reads the command buffer sequentially, which instructs it which sprites to draw in-order. Space between sprites is handled by rendering a fully transparent 1x1 sprite, repeated however many times. I was able to draw the framing for the menus and displays with fancy drop-shadows, logos, text, etc. It worked quite well! The only major limitation was my inability to handle exotic languages like Chinese, simply because there wasn't enough room for all the necessary sprites.
While the FPGA handled real-time, on-the-fly rendering, the on-board MCU was the one uploading sprites and configuring the command buffer over SPI. I had to build up all the software to not only drive the GPU but also handle the OSD. If you think coding up GUIs on a desktop is bad, just wait until you try to design a GUI system completely from scratch on an MCU!
I can only imagine what demoscene artists would be able to accomplish if they could design their own GPUs on an FPGA!
- blevin 10y agoSounds like you might appreciate LFT's Parallelogram fpga demo: http://www.linusakesson.net/scene/parallelogram/ http://www.linusakesson.net/scene/parallelogram/
- niedzielski 10y agoSounds awesome! When I was in school I made a "Game Boy with vector graphics" using an FPGA and a microcontroller. I synthesized a GPU and display driver on the FPGA and sent vector drawing commands from the microcontroller which ran a simple game. It looked like this: https://github.com/niedzielski/swankmania/blob/master/DSC05762.jpg https://github.com/niedzielski/swankmania/blob/master/DSC057... https://github.com/niedzielski/swankmania/blob/master/DSC05786.jpg https://github.com/niedzielski/swankmania/blob/master/DSC057...