Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

ImanHosseini/ACS1.0

Repository files navigation

ACS1.0

Android Cloth Sim 1.0 This is a simple android opengl sample I made. (It is my android "Hello World" actually.)
It simulates a cloth, with an array of springs and masses, and a probabilistic model for wind. Also there is friction proprotional to speed, to stop it from going nuts.
The model for wind is very simplistic but that wasn't what I was after, I just wanted to make the rendering work, so that I can later tinker with different wind models, and further optimize the calculations etc.
Also the coordinates are just so awful and absouletly do not scale, and as they are calibrated to my Samsung S6 expect them to be off the charts! The code though is not hard to understand (I hope).
It is a nice benchmark to see how smart phones hold up when calculations get tense, just crank up the node numbers in the code and let 'em have it.