Portfolio
Cloth Simulation
Tip: A Java applet for realistic cloth animation
   
 

This cloth simulation applet is the pratical trial for the Geometric Computation exam. You can try the applet by yourself pressing "Start Simulation" in the window below. Browser Java applet support is required. It may take a minute to load.



The exam project goal was to achieve a real-time cloth simulation in Java. The idea behind the implementation is to describe every point behaviour individually, specifying how to react both to external forces togheter with the tension between neighbours vertices. The problem local description, when extended to every point in the cloth, generates a realistic animation. Having correctly simulated an animation skeleton properly animated throught physical laws, I've offered two rendering solution, a standard mesh rendering and a Bezier Surface rendering.

The exam requirements were to write a full applet simulation about a problem of student choice correlated to the class topics. Since I was fascinated with the cloth animation and I had never explored that field, I thought it would be a good experience to write a cloth simulation applet. Bezier surfaces charmed me as well, so I've merged this two topics writing an applet capable to animate and render a cloth piece.


Springs connection type

No external libraries, except for the java awt, have been used. The site provided for the exam is visible here (in italian).


Download Cloth Simulation Sources Cloth simulation
Download sources (rar ~55.3Kb)

Eclipse project and sources provided.
All the codework is by Marco Alamia

Keys
Mouse left button: pan the view
Mouse right button: rotate the view
Interface buttons: change some simulation parameters
  Home
About
Curriculum Vitae
Compact Portfolio
Bio
portfolio
Engine section division bar
Psyche Engine
Zenith Engine
Game section division bar
Orbital
Arkam
PoolOMatic
Formula
Other Works section division bar
Cloth Simulation
Cloth Simulation
Papers button
Simple OpenGL Deferred Rendering tutorial
Memory Pools tutorial
Setup Psyche tutorial
Deferred Shading Part 1 tutorial
Deferred Shading Part 2 tutorial
Connections button
     

admin | home | about | psyche | zenith | links