Skip to content

DonaldAlan/jfx-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jfx-examples

JavaFX examples

By Donald A. Smith, [email protected]

cloth.ClothMesh:

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.

Cloth Model Screenshot

Video at https://youtu.be/O7H5Y_y7Ytk

particles.Particles

Simulation of smoke/particles, with sliders that let you control the shape, size, and longevity of the smoke. Particles/Smoke Screenshot

examples.Tube

Tube Mesh Screenshot 1 Tube Mesh Screenshot 2 Tube Mesh Screenshot 3 Tube Mesh Screenshot 4

To Build

mvn compile

To Run

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.

Releases

No releases published

Packages

No packages published

Languages