course – Visual Computing Lab https://viscomp.alexandra.dk Computer Graphics, Computer Vision and High Performance Computing Wed, 29 Apr 2009 18:43:56 +0000 en-GB hourly 1 https://wordpress.org/?v=5.8.2 Easy GPGPU program – OpenGL and CG https://viscomp.alexandra.dk/?p=103 https://viscomp.alexandra.dk/?p=103#comments Wed, 29 Apr 2009 18:43:56 +0000 http://viscomp.alexandra.dk/?p=103 As part of the GPGPU course at the University of Aarhus in 2005 we developed a very simple set of base-classes for General Purpose Computation using the Graphics Processing Unit (GPGPU) through OpenGL, Nvidia CG, and either framebuffer objects or PBuffers for render-to-texture functionality. Today you should ideally use Nvidia CUDA or OpenCL for GPGPU – but the code might still be of interest for older hardware or a pure OpenGL/CG based approach to GPGPU:

SimpleReactionDiffusion (framebuffer_object).zip

The archive file includes the EasyGPUProgram class that has methods to initiate data in a 2d grid layout, do computation (as a cg fragment shader), and retrieve the data. We haveĀ  included a reaction-diffusion example based on GPU Gems 2 chapter 31 using the EasyGPUProgram class.

]]>
https://viscomp.alexandra.dk/?feed=rss2&p=103 1