• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. OpenJFX
  4. 3D Features

Page History

Versions Compared

Old Version 7

changes.mady.by.user J. Duke

Saved on Oct 05, 2012

compared with

New Version 8

changes.mady.by.user J. Duke

Saved on Oct 05, 2012

  • Previous Change: Difference between versions 6 and 7
  • Next Change: Difference between versions 8 and 9
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Specifying a Fixed Camera (existing 2.2 API)

Code Block
 // Create a camera and add it to the Scene
Camera camera = new PerspectiveCamera();
scene.setCamera(camera);

Specifying a Movable Camera

Code Block
 // Create a camera and add it to the Scene
Camera camera = new PerspectiveCamera();
scene.setCamera(camera);

// Add camera to scene graph (so it can move)
Group cameraGroup = new Group();
cameraGroup.getChildren().add(camera);
root.getChildren().add(cameraGroup);

// Rotate the camera
camera.rotate(45);

// Move the cameraGroup (camera moves with it)
cameraGroup.setTranslateZ(-75);

3D primitives

  • Added two type of 3D shapes, extending from an abstract Shape3D base class:
    • User-defined shapes (MeshView)
    • Predefined shapes
User-defined shapes
  •  User defined mesh (geometry) of a shape by specifying a set of points, texture coordinates, and faces (triangles that describe the topology)
  •  User defined smoothing group to specify group of faces that are part of the same curved surface
  •  A mesh is sharable among mutiple user-defined shapes
Predefined shapes
  •  Three commonly used predefined 3D shapes are introduced: Box, Cylinder and Sphere

...

Shape3D Class Hierarchy

...

XXXXXXXXXXXxXXXXXXXXXXXXXx

Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 342, "requestCorrelationId": "9477254e82ef21f2"}