Java FX 3 D in 7 Minutes Jim

























- Slides: 25
Java. FX 3 D in 7 Minutes Jim Weaver Java Technology Ambassador Oracle Corporation @Java. FXpert james. weaver@oracle. com 1 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13
Java. FX 3 D in 7 Minutes 2 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13
Java. FX 3 D Use Cases ■ Inventory and Process Visualization ■ Product Marketing ■ Architectural Design and ■ Scientific and Engineering Visualization ■ 3 D Charting ■ Mechanical CAD and CAE ■ Medical Imaging 3 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. ■ ■ Walkthroughs Advanced User Experience Mission Planning Training Entertainment Insert Information Protection Policy Classification from Slide 13 3
Java. FX 3 D Use Cases ■ Inventory and Process Visualization ■ Product Marketing ■ Architectural Design and ■ Scientific and Engineering Visualization ■ 3 D Charting ■ Mechanical CAD and CAE ■ Medical Imaging 4 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. ■ ■ Walkthroughs Advanced User Experience Mission Planning Training Entertainment Insert Information Protection Policy Classification from Slide 13 4
Inventory and Process Visualization Example 5 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 5
3 D Model of the Cranes 6 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 6
“Java. FX 3 D gives you the ability to use 3 D geometry, cameras, and lights in Java. FX. ” 7 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13
Mesh Geometry (3 D Shapes) ■ Predefined shapes ■ Box ■ Cylinder ■ Sphere ■ User-defined shapes ■ Using Triangle. Mesh / Mesh. View 8 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 8
Creating Primitive Shapes and Materials 9 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 9
3 D Materials and Textures https: //wikis. oracle. com/display/Open. JDK/3 D+Features ■ Phong. Material has these properties ■ Ambient color ■ Diffuse color, diffuse map ■ Specular color, specular map ■ Specular power ■ Bump map ■ Self-illumination map 10 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 10
Duke’s nose has a Diffuse Map texture 11 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 11
This planet has a Bump Map texture 12 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 12
UV Mapping Textures to Shapes Tip: A texture is a 2 D image to be mapped on a 3 D surface Source: http: //en. wikipedia. org/wiki/File: UVMapping. png 13 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 13
Placing a Texture on a Sphere 14 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 14
Placing a Texture on a Sphere 15 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 15
3 D Lights ■ Lights are nodes in the scene graph ■ Point. Light ■ Ambient. Light ■ Default light provided if no active lights 16 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 16
Lights, Camera, Action! 17 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 17
Example 3 D / multi-touch app: Zen. Guitar 3 D 18 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13
Rotating Instrument Picker with Scroll Gesture 19 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 19
Using Scroll Gesture for X/Y Rotate 20 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 20
Playing with Java. FX 3 D 21 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13
Start Here: http: //javafxcommunity. com 22 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 22
Download JDK 8 Early Access Release 23 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 23
Java. FX 3 D in 7 Minutes Jim Weaver Java Technology Ambassador Oracle Corporation @Java. FXpert james. weaver@oracle. com 24 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13
25 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13