manucorporat / ElectricFieldSimulation

An experimental example of how to use OpenGL for physical simulations. All the simulation runs concurrently in the GPU using my own engine as the rendering layer. GPUElectric potential and field simulation using FORZE2D lib. Universidad de valladolid 2013.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Electric Field Simulation in GPU

This is an example of how to use OpenGL for physical simulations. All the simulation runs in parallel in the GPU using my own engine as the rendering layer. The potential and electric field is calculated for each pixel in screen, then several rules are applied to choose the output color.

Electric Field

Download compiled app

http://forzefield.com/ElectricFieldSimulation.zip

Where is the magic?

Right here: simulation.frag

About

An experimental example of how to use OpenGL for physical simulations. All the simulation runs concurrently in the GPU using my own engine as the rendering layer. GPUElectric potential and field simulation using FORZE2D lib. Universidad de valladolid 2013.


Languages

Language:C++ 94.2%Language:Objective-C 3.0%Language:C 2.8%