JavaFX examples
By Donald A. Smith, [email protected]
Cloth model of 3d TriangleMesh in Javafx, with wind, gravity and spring forces between point masses. The program is a JavaFX application with sliders for controlling the wind speed, the spring force, the gravity, and the simulation speed.
See imgs/cloth-screenshot.jpg for a screenshot.
Video at https://youtu.be/O7H5Y_y7Ytk
Simulation of smoke/particles, with sliders that let you control the shape, size, and longevity of the smoke.
mvn compile
Run via:
mvn javafx:run
or commands like:
/c/Program\ Files/Java/jdk1.8.0_221/bin/java -cp target/classes/ cloth.ClothMesh
/c/Program\ Files/Java/jdk1.8.0_221/bin/java -cp target/classes/ particles.Particles
If you use Java 8, javafx libraries are already included.