Package javafx.scene

Examples of javafx.scene.PerspectiveCamera


   
    root.getChildren().add(left);
    root.getChildren().add(right);
   
    Scene scene = new Scene(root);
    scene.setCamera(new PerspectiveCamera());
    primaryStage.setScene(scene);
    primaryStage.setWidth(800);
    primaryStage.setHeight(600);
   
    primaryStage.show();
View Full Code Here


          if( scene == null ) {
            BorderPane p = new BorderPane();
            p.setCenter(rootPane_new);
            scene = new Scene(p, 10000, 10000, Platform.isSupported(ConditionalFeature.SCENE3D));
            if( Platform.isSupported(ConditionalFeature.SCENE3D) ) {
              scene.setCamera(new PerspectiveCamera());
           
          } else {
            Node n = scene.getRoot().lookup("#previewcontainer");
            if( n == null || ! (n instanceof Parent) ) {
              n = scene.getRoot();
View Full Code Here

    }
    root = new BorderPane();
    sw = new AnimatedBorderPaneCenterSwitcher(root);
    root.setCenter(workspaceA);
    Scene scene = new Scene(root,400,400,true);
    scene.setCamera(new PerspectiveCamera());
    primaryStage.setScene(scene);
//    primaryStage.setWidth(800);
//    primaryStage.setHeight(600);
    primaryStage.setFullScreen(true);
    primaryStage.show();
View Full Code Here

primaryStage.setTitle("JavaFX 3D");
primaryStage.setResizable(false);
Scene scene = new Scene(root, WIDTH, HEIGHT, true);
scene.setFill(Color.BLACK);
primaryStage.setScene(scene);
PerspectiveCamera camera = new PerspectiveCamera();
Translate translate = new Translate(WIDTH / 2, HEIGHT / 2);
Rotate rotate = new Rotate(180, Rotate.Y_AXIS);
primaryStage.getScene().setCamera(camera);
root.getTransforms().addAll(translate, rotate);
View Full Code Here

      // TODO Should we create the scene on show???
      Scene s;
      if (support3d && Platform.isSupported(ConditionalFeature.SCENE3D)) {
        s = new Scene(rootPane, -1, -1, true);
        s.setCamera(new PerspectiveCamera());

      } else {
        s = new Scene(rootPane);
      }
View Full Code Here

TOP

Related Classes of javafx.scene.PerspectiveCamera

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.