Examples of PerspectiveCamera


Examples of javafx.scene.PerspectiveCamera

    @Override protected void starting() {
        super.starting();
        node.setRotationAxis(Rotate.X_AXIS);
        oldCamera = node.getScene().getCamera();
        node.getScene().setCamera(new PerspectiveCamera());
    }
View Full Code Here

Examples of javafx.scene.PerspectiveCamera

    @Override public void start(Stage stage) {
        StackPane pane = new StackPane();
        pane.getChildren().addAll(control);

        Scene scene = new Scene(pane);
        scene.setCamera(new PerspectiveCamera(false));

        stage.setScene(scene);
        stage.show();

        timer.start();
View Full Code Here

Examples of javafx.scene.PerspectiveCamera

        pane.setPrefSize(400, 250);
        pane.setPadding(new Insets(50, 50, 50, 50));
        pane.setBackground(new Background(new BackgroundFill(Color.rgb(68, 68, 68), CornerRadii.EMPTY, Insets.EMPTY)));

        Scene scene = new Scene(pane);
        scene.setCamera(new PerspectiveCamera());
        scene.getStylesheets().add(Demo.class.getResource("styles.css").toExternalForm());

        stage.setTitle("FlipPanel Demo");
        stage.setScene(scene);
        stage.show();
View Full Code Here

Examples of javafx.scene.PerspectiveCamera

        Scene scene = new Scene(pane, 1280, 800, new LinearGradient(0, 0, 0, 800, false, CycleMethod.NO_CYCLE,
                                                                    new Stop(0.0, Color.rgb(28, 27, 22)),
                                                                    new Stop(0.25, Color.rgb(38, 37, 32)),
                                                                    new Stop(1.0, Color.rgb(28, 27, 22))));
        scene.setCamera(new PerspectiveCamera());
       
        stage.setScene(scene);       
        stage.show();

        timer.start();
View Full Code Here

Examples of javafx.scene.PerspectiveCamera

    @Override public void start(Stage stage) {                 
        StackPane pane = new StackPane();
        pane.getChildren().addAll(control);       

        Scene scene = new Scene(pane);
        scene.setCamera(new PerspectiveCamera(false));

        stage.setScene(scene);
        stage.show();

        timer.start();               
View Full Code Here

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

Examples of javafx.scene.PerspectiveCamera

          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

Examples of javafx.scene.PerspectiveCamera

    }
    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

Examples of javafx.scene.PerspectiveCamera

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

Examples of javafx.scene.PerspectiveCamera

      // 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
Copyright © 2018 www.massapi.com. 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.