Java Reference
In-Depth Information
public static void main(String[] args) {
launch(args);
}
}
When the program in Listing 10-14 is run, the Mandelbrot Set Example window in Figure
10-17
is displayed.
Figure 10-17.
The MandelbrotSetExample program
Summary
In this chapter, you learned about the JavaFX 3D graphics API. You should now understand the following 3D modeling
concepts:
•
3D modeling involves the creating of 3D shapes, positioning the camera, placing lights, and
providing material for the 3D shapes.
Sphere
,
Cylinder
, and
Box
.
•
The JavaFX 3D graphics API provides three predefined 3D shapes:
MeshView
class represents user-defined 3D shapes. You create a new
MeshView
by giving it
a
TriangleMesh
.
•
The
ParallelCamera
gives you a view of the 3D model that is not realistic—objects in the
foreground appear to have the same size as objects in the background.
•
The
PerspectiveCamera
gives you a more realistic view of the 3D model, with objects farther
away appearing to be smaller. The
fieldOfView
controls how wide a view of the 3D model is
rendered.
•
The
AmbientLight
is a light source that appears to come from all directions.
•
The
Search WWH ::
Custom Search