A 'playground' project for rendering metaball-like graphics in metal.
Go to file
2016-02-29 17:29:03 -05:00
Examples Updated the readme. 2016-02-29 17:28:52 -05:00
PixelImage Refactored colors, added edge animations. 2016-02-29 17:00:53 -05:00
PixelImage.xcodeproj Spring interpolation. 2016-02-29 16:59:45 -05:00
PixelImage.xcworkspace Updating project files on repo. 2016-02-20 18:45:23 -05:00
.gitignore Updating project files on repo. 2016-02-20 18:45:23 -05:00
.tailor.yml Updating project files on repo. 2016-02-20 18:45:23 -05:00
Podfile Added Chameleon from cocoapods. 2016-02-14 02:20:57 -05:00
Podfile.lock Added missing cocoapods files to git. 2016-02-16 13:27:43 -05:00
README.md Updated the readme. 2016-02-29 17:28:52 -05:00

Physics simulation

Metal Metaballs

Metal Metaballs is a framework for rendering graphs in an aesthetically pleasing way. It uses an adapted version of metaball math to create fluid graphics, allow vertices to merge with each other and allow edges to flow and animate smoothly.

Vertices and edges may be added and removed at will and can interact with gestures. Rendering a fullscreen view continuously uses only about 19% of the CPU at 60 fps, though normally the view will only be updated when needed. All rendering is done in a background thread, so the main thread remains almost completely free. These measurements were done using an iPhone 6S Plus (which has more pixels to calculate but more power to do so), so YMMV.

This framework is being developed to make me learn several different design patters, APIs and features used in iOS and in graphics applications. So far, it uses:

Installation

Just download the app and run it on your metal-enabled device of choice :)