Package javafx.scene

Examples of javafx.scene.PerspectiveCamera


    private World world= new World();

    public GameScene(Group root) {
        super(root, 800, 600, true);
        setFill(createFill());
        setCamera(new PerspectiveCamera());
        root.getChildren().addAll(world);
        addListeners();
    }
View Full Code Here


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

    @Override protected void interpolate(double d) {
        if (first) { // setup
            node.setRotationAxis(Rotate.Y_AXIS);
            oldCamera = node.getScene().getCamera();
            node.getScene().setCamera(new PerspectiveCamera());
            first = false;
        }
        super.interpolate(d);
        if (d == 1) { // restore
            first = true;
View Full Code Here

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

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

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

    @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

        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

        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

    @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

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.