JavaFX 3D™ FXTuxCube
FXTuxCube 0.7.1
Meassure your JavaFX 3D system performance
The JavaFX 8 3D application FXTuxCube allows to vary the number of rendered Shape3Ds from 6 up to 10,368 and the number of active Transforms from 1 up to 1,728. Analogically the number of triangles varies between 13,744 and 23,749,632. Frames per second (FPS) and milliseconds per frame (MPF) are calculated based on System.nanoTime() by an AnimationTimer. The application might run faster than 60 FPS if the system property 'javafx.animation.fullspeed' is set to 'true'.
Learning by coding
FXTuxCube might also be helpful for learning how to import 3D models, how to combine a 3D SubScene with controls and context menu, how to navigate in the 3D scene and to set viewpoints, and how to use the new BackgroundFill.
ObjModelImporterJFX in action
The Tux obj-file will be imported with the JavaFX 3D model importer ObjModelImporterJFX.
The Tux model is a derived work released by InteractiveMesh. Original model: 'Tux.lwo / duke.dev.java.net' (C) Copyright Sun Microsystems, Inc., Berkeley Software Distribution (BSD) License.
Current issues
- SubScene.setFill(Color.TRANSPARENT) required, otherwise SubScene doesn't receive mouse events [RT-31297]
Get FXTuxCube
FXTuxCube0.7.1.zip includes the jars, bat/sh-files, sources, 3D model, and licenses. [download]
3D mouse navigation: the left button rotates, the middle button and the wheel zoom, and the right button drags the scene. A right-click opens the context menu.
System requirements
JRE/JavaFX 8 [Java SE Downloads]
FXTuxCubeSV - Simultaneous Viewing - Proof of Concept
Supplement to OpenJFX technical discussion
Simultaneous viewing based on Node.snapshot(..) in thread [Mixing 2D and 3D]
Get FXTuxCubeSV
FXTuxCubeSV-2013-10-31.zip includes the jars, bat/sh-files, sources, 3D model, and licenses. [download]
3D mouse navigation: the left button rotates, the middle button and the wheel zoom, and the right button drags the scene. A right-click opens the context menu.
System requirements
JRE/JavaFX 8 [Java SE Downloads]