Loading...

Using cuda for "physics of magic"

382 views

Loading...

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Sep 25, 2013

This demo was inspired by Escapist article "I hate magic" by Robert Rath ( http://www.escapistmagazine.com/artic... ) and "continuous game of life" (http://arxiv.org/abs/1111.1567 ) by Stephan Rafler
This is attempt to show how GPGPU could be used to model magic as different physics.
The demo run at 70 fps at laptop with GF GTX 670M. With some tradeoffs it can be made run much faster
require CUDA GPGPU with at least 2.0 Cuda compute capability (practically all modern cards, GF GTX 550 or better)
Source code:
https://github.com/s271/cuMagic/
binaries for windows :
https://github.com/s271/cuMagic/relea...


The concepts of the game: Player and AI controls elements and laws of magic.
Elements:
Basic elements
The main elements are red and blue. The elements reside on the grey background. Red concentrate on light spots and blue on dark spots. Player control basic element by changing background - moving or jumping grey spiral disk ("form")
Attack elements.
Attack elements are yellow for player and green for AI. They propagate in viral manner. Player create them by choosing yellow (green for AI) circle and clicking on the game field.
Shield elements
Magenta for player and Jade for AI
Those are kind of vortices which swirl around basic elements and consume attack elements.
Suppressive defence elements:
Orange field suppress green, violet suppress yellow, they also suppress each over.
Laws:
Low give player and AI some control over conversion of elements.

Loading...

to add this to Watch Later

Add to

Loading playlists...