From 72fe8c4881a16c3865e79a07c5ffeec6ebb65598 Mon Sep 17 00:00:00 2001 From: Zhi You Tan Date: Thu, 28 Sep 2017 04:13:44 +1300 Subject: [PATCH] - Removed 2D wind and replaced with 3D wind arrow. #story[1276] --- .../controllers/RaceViewController.java | 36 +- .../controllers/cells/WindCell.java | 25 + .../fxObjects/assets_3D/ModelFactory.java | 38 +- .../fxObjects/assets_3D/ModelType.java | 3 +- src/main/resources/css/RaceView.css | 6 +- .../resources/meshes/windFiles/log_arrow.dae | 518 ++++++++++++++++++ .../resources/meshes/windFiles/logarrow.dae | 425 -------------- src/main/resources/views/RaceView.fxml | 15 +- src/main/resources/views/cells/WindCell.fxml | 7 + 9 files changed, 619 insertions(+), 454 deletions(-) create mode 100644 src/main/java/seng302/visualiser/controllers/cells/WindCell.java create mode 100644 src/main/resources/meshes/windFiles/log_arrow.dae delete mode 100644 src/main/resources/meshes/windFiles/logarrow.dae create mode 100644 src/main/resources/views/cells/WindCell.fxml diff --git a/src/main/java/seng302/visualiser/controllers/RaceViewController.java b/src/main/java/seng302/visualiser/controllers/RaceViewController.java index 7395d5df..9d095fd0 100644 --- a/src/main/java/seng302/visualiser/controllers/RaceViewController.java +++ b/src/main/java/seng302/visualiser/controllers/RaceViewController.java @@ -20,8 +20,6 @@ import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.geometry.Point2D; -import javafx.scene.Group; -import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.SubScene; import javafx.scene.chart.LineChart; @@ -48,26 +46,22 @@ import javafx.scene.shape.Polyline; import javafx.scene.text.Text; import javafx.stage.Stage; import javafx.stage.StageStyle; -import javax.swing.ImageIcon; import seng302.model.ClientYacht; -import seng302.model.ClientYacht.PowerUpListener; import seng302.model.RaceState; import seng302.model.mark.CompoundMark; import seng302.model.mark.Mark; import seng302.model.stream.xml.parser.RaceXMLData; -import seng302.model.token.Token; import seng302.model.token.TokenType; import seng302.utilities.Sounds; import seng302.visualiser.GameView3D; import seng302.visualiser.controllers.annotations.ImportantAnnotationController; import seng302.visualiser.controllers.annotations.ImportantAnnotationDelegate; import seng302.visualiser.controllers.annotations.ImportantAnnotationsState; +import seng302.visualiser.controllers.cells.WindCell; import seng302.visualiser.controllers.dialogs.FinishDialogController; import seng302.visualiser.fxObjects.ChatHistory; import seng302.visualiser.fxObjects.assets_2D.WindArrow; import seng302.visualiser.fxObjects.assets_3D.BoatObject; -import seng302.visualiser.fxObjects.assets_3D.ModelFactory; -import seng302.visualiser.fxObjects.assets_3D.ModelType; /** * Controller class that manages the display of a race @@ -112,8 +106,8 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel private ComboBox yachtSelectionComboBox; @FXML private Text fpsDisplay; - @FXML - private ImageView windImageView; + // @FXML +// private ImageView windImageView; @FXML private Label windDirectionLabel; @FXML @@ -122,6 +116,8 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel private Label positionLabel, boatSpeedLabel, boatHeadingLabel; @FXML private ImageView velocityIcon, handlingIcon, windWalkerIcon, bumperIcon, badRandomIcon; + @FXML + private VBox windArrowVBox; //Race Data private Map participants; @@ -211,6 +207,26 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel } } }); + + initialiseWindArrow(); + } + + /** + * Initialise wind arrow cell. + */ + private void initialiseWindArrow() { + Pane pane = null; + FXMLLoader loader = new FXMLLoader( + getClass().getResource("/views/cells/WindCell.fxml")); + loader.setController(new WindCell()); + + try { + pane = loader.load(); + } catch (IOException e) { + e.printStackTrace(); + } + + windArrowVBox.getChildren().add(pane); } public void showFinishDialog(ArrayList finishedBoats) { @@ -582,7 +598,7 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel */ private void updateWindDirection(double direction) { windDirectionLabel.setText(String.format("%.1f°", direction)); - windImageView.setRotate(direction); +// windImageView.setRotate(direction); } /** diff --git a/src/main/java/seng302/visualiser/controllers/cells/WindCell.java b/src/main/java/seng302/visualiser/controllers/cells/WindCell.java new file mode 100644 index 00000000..acfd0b50 --- /dev/null +++ b/src/main/java/seng302/visualiser/controllers/cells/WindCell.java @@ -0,0 +1,25 @@ +package seng302.visualiser.controllers.cells; + +import javafx.fxml.FXML; +import javafx.scene.Group; +import javafx.scene.layout.Pane; +import seng302.visualiser.fxObjects.assets_3D.Model; +import seng302.visualiser.fxObjects.assets_3D.ModelFactory; + +public class WindCell { + + //--------FXML BEGIN--------// + @FXML + private Pane windPane; + //---------FXML END---------// + + /** + * Initialise WindCell fxml and load 3D wind arrow into a group. + */ + public void initialize() { + Group group = new Group(); + windPane.getChildren().add(group); + Model windArrowModel = ModelFactory.makeWindArrow(); + group.getChildren().add(windArrowModel.getAssets()); + } +} diff --git a/src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelFactory.java b/src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelFactory.java index 6d129f5e..9cf3310c 100644 --- a/src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelFactory.java +++ b/src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelFactory.java @@ -7,7 +7,6 @@ import javafx.geometry.Point3D; import javafx.scene.AmbientLight; import javafx.scene.CacheHint; import javafx.scene.Group; -import javafx.scene.PointLight; import javafx.scene.paint.Color; import javafx.scene.paint.PhongMaterial; import javafx.scene.shape.Circle; @@ -17,7 +16,6 @@ import javafx.scene.transform.Scale; import javafx.scene.transform.Translate; - /** * Factory class for creating 3D models of boatTypes. */ @@ -272,4 +270,40 @@ public class ModelFactory { ); return new Model(new Group(assets), null); } + + /** + * Create a 3D wind arrow. + * + * @return 3D wind arrow object + */ + public static Model makeWindArrow() { + ColModelImporter importer = new ColModelImporter(); + importer.read(ModelFactory.class.getResource("/meshes/" + ModelType.WIND_ARROW.filename)); + Group assets = new Group(importer.getImport()); + assets.setCache(true); + assets.setCacheHint(CacheHint.SCALE_AND_ROTATE); + + Rotate animationRotate = new Rotate(0, new Point3D(0, 1, 0)); + assets.getTransforms().addAll( + new Scale(6, 6, 6), + new Translate(7, 10, 0), + animationRotate + ); + + assets.getChildren().addAll( + new AmbientLight() + ); + + return new Model(new Group(assets), new AnimationTimer() { + + private double rotation = 0; + private Rotate rotate = animationRotate; + + @Override + public void handle(long now) { + rotation += 1; + rotate.setAngle(rotation); + } + }); + } } diff --git a/src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelType.java b/src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelType.java index 06df2eda..872cfd42 100644 --- a/src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelType.java +++ b/src/main/java/seng302/visualiser/fxObjects/assets_3D/ModelType.java @@ -26,7 +26,8 @@ public enum ModelType { PLAYER_IDENTIFIER ("player_identifier.dae"), PLAIN_ARROW ("arrow.dae"), START_ARROW ("start_arrow.dae"), - FINISH_ARROW ("finish_arrow.dae"); + FINISH_ARROW("finish_arrow.dae"), + WIND_ARROW("windFiles/log_arrow.dae"); final String filename; diff --git a/src/main/resources/css/RaceView.css b/src/main/resources/css/RaceView.css index f38216c8..aab10883 100644 --- a/src/main/resources/css/RaceView.css +++ b/src/main/resources/css/RaceView.css @@ -61,6 +61,6 @@ GridPane .timer * { -fx-background-color: transparent; } -#windImageView { - -fx-image: url("/images/wind-180.png"); -} \ No newline at end of file +/*#windImageView {*/ +/*-fx-image: url("/images/wind-180.png");*/ +/*}*/ \ No newline at end of file diff --git a/src/main/resources/meshes/windFiles/log_arrow.dae b/src/main/resources/meshes/windFiles/log_arrow.dae new file mode 100644 index 00000000..6a1f9a76 --- /dev/null +++ b/src/main/resources/meshes/windFiles/log_arrow.dae @@ -0,0 +1,518 @@ + + + + + Blender User + Blender 2.79.0 commit date:2017-09-11, commit time:10:43, hash:5bd8ac9 + + 2017-09-28T02:22:29 + 2017-09-28T02:22:29 + + Z_UP + + + + + + + 49.13434 + 1.777778 + 0.1 + 100 + + + + + + 0 + 0 + 0 + + + + + + + + 49.13434 + 1.777778 + 0.1 + 100 + + + + + + 0 + 0 + 0 + + + + + + + + 49.13434 + 1.777778 + 0.1 + 100 + + + + + + 0 + 0 + 0 + + + + + + + + 49.13434 + 1.777778 + 0.1 + 100 + + + + + + 0 + 0 + 0 + + + + + + + + + 1 1 1 + 1 + 0 + 0.00111109 + + + + + 0 + 0 + 8192 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 29.99998 + 75 + 0.15 + 1 + 0 + 1 + 2 + 1.000799 + 30.002 + 1 + 3 + 0.04999995 + 2880 + 3 + 1 + 0 + 0 + 2 + 1 + 1 + 1 + 0 + 1 + 0.1 + 0.1 + 1 + 0.000999987 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 2 + 1 + 1 + 1 + 1 + 0 + + + + + + + 1 1 1 + 1 + 0 + 0.00111109 + + + + + 0 + 0 + 8192 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 29.99998 + 75 + 0.15 + 1 + 0 + 1 + 2 + 1.000799 + 30.002 + 1 + 3 + 0.04999995 + 2880 + 3 + 1 + 0 + 0 + 2 + 1 + 1 + 1 + 0 + 1 + 0.1 + 0.1 + 1 + 9.99987e-4 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 2 + 1 + 1 + 1 + 1 + 0 + + + + + + + 1 1 1 + 1 + 0 + 0.00111109 + + + + + 0 + 0 + 8192 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 29.99998 + 75 + 0.15 + 1 + 0 + 1 + 2 + 1.000799 + 30.002 + 1 + 3 + 0.04999995 + 2880 + 3 + 1 + 0 + 0 + 2 + 1 + 1 + 1 + 0 + 1 + 0.1 + 0.1 + 1 + 9.99987e-4 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 2 + 1 + 1 + 1 + 1 + 0 + + + + + + + 1 1 1 + 1 + 0 + 0.00111109 + + + + + 0 + 0 + 8192 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 29.99998 + 75 + 0.15 + 1 + 0 + 1 + 2 + 1.000799 + 30.002 + 1 + 3 + 0.04999995 + 2880 + 3 + 1 + 0 + 0 + 2 + 1 + 1 + 1 + 0 + 1 + 0.1 + 0.1 + 1 + 9.99987e-4 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 2 + 1 + 1 + 1 + 1 + 0 + + + + + + + + + + + + 0 0 0 1 + + + 0 0 0 1 + + + 0.8 0 0 1 + + + 0.125 0.125 0.125 1 + + + 50 + + + 1 + + + + + + + + + + + 0 0 0 1 + + + 0 0 0 1 + + + 0 0 0.8 1 + + + 0.125 0.125 0.125 1 + + + 50 + + + 1 + + + + + + + + + + + + + + + + + + + 0 -0.6151299 -0.05701982 -1.77995e-7 -1.7983e-7 -2.05702 0.1200059 -0.6033104 -0.05701982 0.2354 -0.5683059 -0.05701982 0.3417478 -0.5114619 -0.05701982 0.4349624 -0.4349625 -0.05701982 0.5114617 -0.3417478 -0.05701982 0.5683057 -0.2354 -0.05701982 0.6033101 -0.120006 -0.05701988 0.6151297 -1.61108e-7 -0.05701988 0.6033102 0.1200057 -0.05701988 0.5683057 0.2353997 -0.05701988 0.5114617 0.3417476 -0.05701988 0.4349624 0.4349623 -0.05701988 0.3417478 0.5114615 -0.05701988 0.2353999 0.5683056 -0.05701988 0.1200057 0.60331 -0.05701988 -1.59668e-7 0.6151295 -0.05701988 -0.120006 0.6033099 -0.05701988 -0.2354001 0.5683054 -0.05701982 -0.341748 0.5114613 -0.05701982 -0.4349626 0.434962 -0.05701982 -0.5114619 0.3417473 -0.05701982 -0.568306 0.2353994 -0.05701982 -0.6033103 0.1200052 -0.05701982 -0.6151297 -7.08636e-7 -0.05701982 -0.6033101 -0.1200066 -0.05701977 -0.5683055 -0.2354007 -0.05701977 -0.5114613 -0.3417485 -0.05701977 -0.4349618 -0.4349631 -0.05701977 -0.341747 -0.5114623 -0.05701977 -0.235399 -0.5683063 -0.05701977 -0.1200048 -0.6033105 -0.05701977 0 0.6151295 -0.06060606 0 -2.89444e-7 1.939394 0.1200058 0.60331 -0.06060606 0.2353999 0.5683056 -0.06060606 0.3417478 0.5114615 -0.06060606 0.4349623 0.4349622 -0.06060606 0.5114616 0.3417475 -0.06060606 0.5683057 0.2353997 -0.06060606 0.6033101 0.1200057 -0.06060606 0.6151297 -1.40432e-7 -0.06060606 0.6033102 -0.1200059 -0.06060606 0.5683057 -0.2354 -0.06060606 0.5114616 -0.3417478 -0.06060606 0.4349623 -0.4349626 -0.06060606 0.3417477 -0.5114619 -0.06060606 0.2353998 -0.568306 -0.06060606 0.1200056 -0.6033104 -0.06060606 -2.4745e-7 -0.6151298 -0.06060606 -0.1200062 -0.6033103 -0.06060606 -0.2354003 -0.5683058 -0.06060606 -0.3417481 -0.5114617 -0.06060606 -0.4349627 -0.4349622 -0.06060606 -0.511462 -0.3417476 -0.06060606 -0.568306 -0.2353997 -0.06060606 -0.6033104 -0.1200055 -0.06060606 -0.6151298 4.10911e-7 -0.06060606 -0.6033101 0.1200063 -0.06060606 -0.5683056 0.2354003 -0.06060606 -0.5114613 0.3417482 -0.06060606 -0.4349619 0.4349627 -0.06060606 -0.3417471 0.511462 -0.06060606 -0.2353991 0.5683059 -0.06060606 -0.120005 0.6033102 -0.06060606 + + + + + + + + + + 0 0.8207646 -0.5712665 0 0 1 0.1601035 0.8050041 -0.5712578 0.3140783 0.7582927 -0.5712679 0.4559909 0.6824451 -0.5712627 0.5803661 0.5803661 -0.5712711 0.6824451 0.4559909 -0.5712627 0.7582927 0.3140783 -0.5712679 0.8050041 0.1601035 -0.5712578 0.8207646 0 -0.5712665 0.8050041 -0.1601035 -0.5712578 0.7582927 -0.3140783 -0.5712679 0.6824451 -0.4559909 -0.5712627 0.5803661 -0.5803661 -0.5712711 0.4559909 -0.6824451 -0.5712627 0.3140783 -0.7582927 -0.5712679 0.1601035 -0.8050041 -0.5712578 0 -0.8207646 -0.5712665 -0.1601035 -0.8050041 -0.5712578 -0.3140783 -0.7582927 -0.5712679 -0.4559909 -0.6824451 -0.5712627 -0.5803661 -0.5803661 -0.5712711 -0.6824451 -0.4559909 -0.5712627 -0.7582927 -0.3140783 -0.5712679 -0.8050041 -0.1601035 -0.5712578 -0.8207646 0 -0.5712665 -0.8050041 0.1601035 -0.5712578 -0.7582927 0.3140783 -0.5712679 -0.6824451 0.4559909 -0.5712627 -0.5803661 0.5803661 -0.5712711 -0.4559909 0.6824451 -0.5712627 -0.3140783 0.7582927 -0.5712679 -0.1601035 0.8050041 -0.5712578 0 -0.8207646 0.5712665 0 0 -1 0.1601035 -0.8050041 0.5712578 0.3140783 -0.7582927 0.5712679 0.4559909 -0.6824451 0.5712627 0.5803661 -0.5803661 0.5712711 0.6824451 -0.4559909 0.5712627 0.7582927 -0.3140783 0.5712679 0.8050041 -0.1601035 0.5712578 0.8207646 0 0.5712665 0.8050041 0.1601035 0.5712578 0.7582927 0.3140783 0.5712679 0.6824451 0.4559909 0.5712627 0.5803661 0.5803661 0.5712711 0.4559909 0.6824451 0.5712627 0.3140783 0.7582927 0.5712679 0.1601035 0.8050041 0.5712578 0 0.8207646 0.5712665 -0.1601035 0.8050041 0.5712578 -0.3140783 0.7582927 0.5712679 -0.4559909 0.6824451 0.5712627 -0.5803661 0.5803661 0.5712711 -0.6824451 0.4559909 0.5712627 -0.7582927 0.3140783 0.5712679 -0.8050041 0.1601035 0.5712578 -0.8207646 0 0.5712665 -0.8050041 -0.1601035 0.5712578 -0.7582927 -0.3140783 0.5712679 -0.6824451 -0.4559909 0.5712627 -0.5803661 -0.5803661 0.5712711 -0.4559909 -0.6824451 0.5712627 -0.3140783 -0.7582927 0.5712679 -0.1601035 -0.8050041 0.5712578 + + + + + + + + + + + + + + +

33 0 34 1 35 2 35 2 34 1 36 3 36 3 34 1 37 4 37 4 34 1 38 5 38 5 34 1 39 6 39 6 34 1 40 7 40 7 34 1 41 8 41 8 34 1 42 9 42 9 34 1 43 10 43 10 34 1 44 11 44 11 34 1 45 12 45 12 34 1 46 13 46 13 34 1 47 14 47 14 34 1 48 15 48 15 34 1 49 16 49 16 34 1 50 17 50 17 34 1 51 18 51 18 34 1 52 19 52 19 34 1 53 20 53 20 34 1 54 21 54 21 34 1 55 22 55 22 34 1 56 23 56 23 34 1 57 24 57 24 34 1 58 25 58 25 34 1 59 26 59 26 34 1 60 27 60 27 34 1 61 28 61 28 34 1 62 29 62 29 34 1 63 30 63 30 34 1 64 31 64 31 34 1 65 32 65 32 34 1 33 0 49 16 57 24 65 32 65 32 33 0 35 2 35 2 36 3 65 32 37 4 38 5 39 6 39 6 40 7 41 8 41 8 42 9 43 10 43 10 44 11 41 8 45 12 46 13 47 14 47 14 48 15 45 12 49 16 50 17 53 20 51 18 52 19 53 20 53 20 54 21 57 24 55 22 56 23 57 24 57 24 58 25 59 26 59 26 60 27 61 28 61 28 62 29 65 32 63 30 64 31 65 32 65 32 36 3 37 4 37 4 39 6 41 8 41 8 44 11 45 12 45 12 48 15 49 16 50 17 51 18 53 20 54 21 55 22 57 24 57 24 59 26 65 32 62 29 63 30 65 32 65 32 37 4 41 8 41 8 45 12 65 32 49 16 53 20 57 24 59 26 61 28 65 32 65 32 45 12 49 16

+
+ + + +

0 33 1 34 2 35 2 35 1 34 3 36 3 36 1 34 4 37 4 37 1 34 5 38 5 38 1 34 6 39 6 39 1 34 7 40 7 40 1 34 8 41 8 41 1 34 9 42 9 42 1 34 10 43 10 43 1 34 11 44 11 44 1 34 12 45 12 45 1 34 13 46 13 46 1 34 14 47 14 47 1 34 15 48 15 48 1 34 16 49 16 49 1 34 17 50 17 50 1 34 18 51 18 51 1 34 19 52 19 52 1 34 20 53 20 53 1 34 21 54 21 54 1 34 22 55 22 55 1 34 23 56 23 56 1 34 24 57 24 57 1 34 25 58 25 58 1 34 26 59 26 59 1 34 27 60 27 60 1 34 28 61 28 61 1 34 29 62 29 62 1 34 30 63 30 63 1 34 31 64 31 64 1 34 32 65 32 65 1 34 0 33 16 49 24 57 8 41 32 65 0 33 2 35 2 35 3 36 4 37 4 37 5 38 8 41 6 39 7 40 8 41 8 41 9 42 10 43 10 43 11 44 8 41 12 45 13 46 14 47 14 47 15 48 16 49 16 49 17 50 20 53 18 51 19 52 20 53 20 53 21 54 22 55 22 55 23 56 24 57 24 57 25 58 26 59 26 59 27 60 24 57 28 61 29 62 32 65 30 63 31 64 32 65 32 65 2 35 8 41 5 38 6 39 8 41 8 41 11 44 12 45 12 45 14 47 16 49 17 50 18 51 20 53 20 53 22 55 24 57 24 57 27 60 28 61 29 62 30 63 32 65 2 35 4 37 8 41 8 41 12 45 16 49 16 49 20 53 24 57 24 57 28 61 32 65 32 65 8 41 24 57

+
+
+
+
+ + + + + 0.6859207 -0.3240135 0.6515582 7.481132 0.7276763 0.3054208 -0.6141704 -6.50764 0 0.8953956 0.4452714 5.343665 0 0 0 1 + + + + -0.2908646 -0.7711008 0.5663932 4.076245 0.9551712 -0.1998834 0.2183912 1.005454 -0.05518906 0.6045247 0.7946723 5.903862 0 0 0 1 + + + + 1.371841 -0.648027 1.303116 10.0091 1.455353 0.6108412 -1.228341 -10.6572 3.76898e-7 1.790791 0.8905425 5.77815 0 0 0 1 + + + + -0.5817292 -1.542202 1.132786 3.199329 1.910342 -0.3997671 0.4367821 4.368987 -0.1103777 1.209049 1.589345 6.898543 0 0 0 1 + + + + 0.1515022 -3.01129e-7 -1.994254 0.004837528 -3.54228e-13 -2 3.01996e-7 -0.04310748 -1.994254 -2.28762e-8 -0.1515022 -0.001579307 0 0 0 1 + + + + + + + + + + + -0.5817294 -1.542202 1.132787 3.199328 1.910342 -0.3997668 0.4367828 4.368987 -0.1103783 1.209049 1.589345 6.898543 0 0 0 1 + + + + 1.371841 -0.648027 1.303116 10.0091 1.455353 0.6108412 -1.228341 -10.6572 3.76898e-7 1.790791 0.8905425 5.77815 0 0 0 1 + + + + 1.371841 -0.648027 1.303116 10.0091 1.455353 0.6108412 -1.228341 -10.6572 3.76898e-7 1.790791 0.8905425 5.77815 0 0 0 1 + + + + -0.5817294 -1.542202 1.132787 3.199328 1.910342 -0.3997668 0.4367828 4.368987 -0.1103783 1.209049 1.589345 6.898543 0 0 0 1 + + + + + + + +
\ No newline at end of file diff --git a/src/main/resources/meshes/windFiles/logarrow.dae b/src/main/resources/meshes/windFiles/logarrow.dae deleted file mode 100644 index ef659bef..00000000 --- a/src/main/resources/meshes/windFiles/logarrow.dae +++ /dev/null @@ -1,425 +0,0 @@ - - - - - Blender User - Blender 2.78.0 commit date:2016-09-26, commit time:12:42, hash:4bb1e22 - - 2017-09-27T15:37:18 - 2017-09-27T15:37:18 - - Z_UP - - - - - - - 49.13434 - 1.777778 - 0.1 - 100 - - - - - - 0 - 0 - 0 - - - - - - - - 49.13434 - 1.777778 - 0.1 - 100 - - - - - - 0 - 0 - 0 - - - - - - - - 49.13434 - 1.777778 - 0.1 - 100 - - - - - - 0 - 0 - 0 - - - - - - - - - 1 1 1 - 1 - 0 - 0.00111109 - - - - - 0.000999987 - 1 - 0.1 - 0.1 - 1 - 1 - 1 - 2 - 0 - 1 - 1 - 1 - 1 - 1 - 0 - 2880 - 2 - 30.002 - 1.000799 - 0.04999995 - 29.99998 - 1 - 2 - 0 - 0 - 1 - 1 - 1 - 1 - 8192 - 1 - 1 - 0 - 1 - 1 - 1 - 3 - 0 - 0 - 0 - 0 - 0 - 1 - 1 - 1 - 3 - 0.15 - 75 - 1 - 1 - 0 - 1 - 1 - 0 - - - - - - - 1 1 1 - 1 - 0 - 0.00111109 - - - - - 9.99987e-4 - 1 - 0.1 - 0.1 - 1 - 1 - 1 - 2 - 0 - 1 - 1 - 1 - 1 - 1 - 0 - 2880 - 2 - 30.002 - 1.000799 - 0.04999995 - 29.99998 - 1 - 2 - 0 - 0 - 1 - 1 - 1 - 1 - 8192 - 1 - 1 - 0 - 1 - 1 - 1 - 3 - 0 - 0 - 0 - 0 - 0 - 1 - 1 - 1 - 3 - 0.15 - 75 - 1 - 1 - 0 - 1 - 1 - 0 - - - - - - - 1 1 1 - 1 - 0 - 0.00111109 - - - - - 9.99987e-4 - 1 - 0.1 - 0.1 - 1 - 1 - 1 - 2 - 0 - 1 - 1 - 1 - 1 - 1 - 0 - 2880 - 2 - 30.002 - 1.000799 - 0.04999995 - 29.99998 - 1 - 2 - 0 - 0 - 1 - 1 - 1 - 1 - 8192 - 1 - 1 - 0 - 1 - 1 - 1 - 3 - 0 - 0 - 0 - 0 - 0 - 1 - 1 - 1 - 3 - 0.15 - 75 - 1 - 1 - 0 - 1 - 1 - 0 - - - - - - - - - - - - 0 0 0 1 - - - 0 0 0 1 - - - 0.8 0 0 1 - - - 0.25 0.25 0.25 1 - - - 50 - - - 1 - - - - - - - - - - - 0 0 0 1 - - - 0 0 0 1 - - - 0 0 0.8 1 - - - 0.25 0.25 0.25 1 - - - 50 - - - 1 - - - - - - - - - - - - - - - - - - - 0 -0.6151299 -0.05701988 -1.77995e-7 -1.7983e-7 -2.05702 0.1200059 -0.6033104 -0.05701988 0.2354 -0.5683059 -0.05701988 0.3417478 -0.5114619 -0.05701988 0.4349624 -0.4349625 -0.05701988 0.5114617 -0.3417478 -0.05701988 0.5683057 -0.2354 -0.05701988 0.6033101 -0.120006 -0.05701994 0.6151297 -1.61108e-7 -0.05701994 0.6033102 0.1200057 -0.05701994 0.5683057 0.2353997 -0.05701994 0.5114617 0.3417476 -0.05701994 0.4349624 0.4349623 -0.05701994 0.3417478 0.5114615 -0.05701994 0.2353999 0.5683056 -0.05701994 0.1200057 0.60331 -0.05701994 -1.59668e-7 0.6151295 -0.05701994 -0.120006 0.6033099 -0.05701994 -0.2354001 0.5683054 -0.05701988 -0.341748 0.5114613 -0.05701988 -0.4349626 0.434962 -0.05701988 -0.5114619 0.3417473 -0.05701988 -0.568306 0.2353994 -0.05701988 -0.6033103 0.1200052 -0.05701988 -0.6151297 -7.08636e-7 -0.05701988 -0.6033101 -0.1200066 -0.05701977 -0.5683055 -0.2354007 -0.05701977 -0.5114613 -0.3417485 -0.05701977 -0.4349618 -0.4349631 -0.05701977 -0.341747 -0.5114623 -0.05701977 -0.235399 -0.5683063 -0.05701977 -0.1200048 -0.6033105 -0.05701977 0 0.6151295 -0.06060606 0 -2.89444e-7 1.939394 0.1200058 0.60331 -0.06060606 0.2353999 0.5683056 -0.06060606 0.3417478 0.5114615 -0.06060606 0.4349623 0.4349622 -0.06060606 0.5114616 0.3417475 -0.06060606 0.5683057 0.2353997 -0.06060606 0.6033101 0.1200057 -0.06060606 0.6151297 -1.40432e-7 -0.06060606 0.6033102 -0.1200059 -0.06060606 0.5683057 -0.2354 -0.06060606 0.5114616 -0.3417478 -0.06060606 0.4349623 -0.4349626 -0.06060606 0.3417477 -0.5114619 -0.06060606 0.2353998 -0.568306 -0.06060606 0.1200056 -0.6033104 -0.06060606 -2.4745e-7 -0.6151298 -0.06060606 -0.1200062 -0.6033103 -0.06060606 -0.2354003 -0.5683058 -0.06060606 -0.3417481 -0.5114617 -0.06060606 -0.4349627 -0.4349622 -0.06060606 -0.511462 -0.3417476 -0.06060606 -0.568306 -0.2353997 -0.06060606 -0.6033104 -0.1200055 -0.06060606 -0.6151298 4.10911e-7 -0.06060606 -0.6033101 0.1200063 -0.06060606 -0.5683056 0.2354003 -0.06060606 -0.5114613 0.3417482 -0.06060606 -0.4349619 0.4349627 -0.06060606 -0.3417471 0.511462 -0.06060606 -0.2353991 0.5683059 -0.06060606 -0.120005 0.6033102 -0.06060606 - - - - - - - - - - 0.09372454 0.951606 0.2926806 0.2775725 0.9150364 0.2926806 0.4507545 0.8433023 0.2926806 0.6066139 0.7391601 0.2926806 0.7391607 0.6066133 0.2926805 0.8433024 0.4507542 0.2926805 0.9150362 0.2775736 0.2926806 0.9516059 0.09372544 0.2926805 0.9516059 -0.09372454 0.2926805 0.915036 -0.2775742 0.2926805 0.8433023 -0.4507544 0.2926805 0.7391611 -0.6066128 0.2926804 0.6066137 -0.7391603 0.2926805 0.4507542 -0.8433023 0.2926805 0.2775723 -0.9150366 0.2926806 0.09372401 -0.951606 0.2926805 -0.09372484 -0.9516059 0.2926805 -0.2775738 -0.915036 0.2926805 -0.4507547 -0.8433021 0.2926805 -0.6066145 -0.7391598 0.2926806 -0.7391604 -0.6066137 0.2926806 -0.8433026 -0.4507539 0.2926806 -0.9150364 -0.2775726 0.2926805 -0.951606 -0.09372395 0.2926805 -0.9516057 0.09372633 0.2926806 -0.915036 0.277574 0.2926806 -0.8433018 0.4507554 0.2926805 -0.7391595 0.6066148 0.2926806 -0.6066129 0.739161 0.2926806 -0.4507528 0.8433031 0.2926806 -0.2775725 0.9150365 0.2926806 -0.09372329 0.951606 0.2926806 0 0 -1 0 0 -1 3.28296e-7 0 -1 -1.64149e-7 0 -1 -2.26048e-7 0 -1 3.28297e-7 0 -1 -3.28296e-7 0 -1 -3.28296e-7 0 -1 0 0 -1 0 0 -1 0 0 -1 -2.21704e-7 0 -1 0 0 -1 0.09372442 -0.9516059 -0.2926806 0.2775733 -0.9150362 -0.2926806 0.4507539 -0.8433025 -0.2926806 0.6066143 -0.7391599 -0.2926805 0.7391608 -0.6066131 -0.2926806 0.8433025 -0.4507539 -0.2926806 0.915036 -0.277574 -0.2926805 0.9516058 -0.09372544 -0.2926806 0.9516059 0.09372448 -0.2926806 0.9150358 0.2775744 -0.2926806 0.8433026 0.4507536 -0.2926806 0.7391608 0.6066131 -0.2926806 0.6066132 0.7391608 -0.2926806 0.4507543 0.8433023 -0.2926805 0.2775727 0.9150364 -0.2926806 0.09372448 0.9516059 -0.2926805 -0.09372496 0.951606 -0.2926805 -0.2775738 0.9150361 -0.2926806 -0.4507542 0.8433023 -0.2926805 -0.6066136 0.7391604 -0.2926805 -0.7391607 0.6066134 -0.2926805 -0.8433024 0.4507542 -0.2926805 -0.9150366 0.2775718 -0.2926805 -0.951606 0.09372401 -0.2926805 -0.9516059 -0.09372538 -0.2926805 -0.9150359 -0.2775746 -0.2926805 -0.843302 -0.450755 -0.2926805 -0.7391596 -0.6066146 -0.2926804 -0.6066121 -0.7391617 -0.2926804 -0.4507536 -0.8433027 -0.2926805 -0.2775714 -0.9150367 -0.2926805 -0.09372484 -0.9516059 -0.2926805 0 0 1 4.92454e-7 -5.20057e-6 1 1.64148e-7 0 1 -2.26048e-7 3.37136e-7 1 -2.29809e-6 1.19436e-6 1 3.28297e-7 0 1 0 0 1 -1.64147e-7 0 1 0 4.34036e-7 1 1.31319e-6 -2.23449e-6 1 3.28294e-7 0 1 -4.92447e-6 5.12199e-7 1 1.77363e-6 5.12203e-7 1 0 0 1 1.64148e-7 0 1 5.13841e-7 -3.88877e-7 1 -8.8682e-7 5.42729e-7 1 0 8.51386e-7 1 7.34657e-7 4.24034e-7 1 0 0 1 0 2.10533e-7 1 1.42611e-7 0 1 2.25801e-7 3.07043e-7 1 0 2.34078e-7 1 - - - - - - - - - - - - - - - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 -

33 0 34 0 35 0 35 1 34 1 36 1 36 2 34 2 37 2 37 3 34 3 38 3 38 4 34 4 39 4 39 5 34 5 40 5 40 6 34 6 41 6 41 7 34 7 42 7 42 8 34 8 43 8 43 9 34 9 44 9 44 10 34 10 45 10 45 11 34 11 46 11 46 12 34 12 47 12 47 13 34 13 48 13 48 14 34 14 49 14 49 15 34 15 50 15 50 16 34 16 51 16 51 17 34 17 52 17 52 18 34 18 53 18 53 19 34 19 54 19 54 20 34 20 55 20 55 21 34 21 56 21 56 22 34 22 57 22 57 23 34 23 58 23 58 24 34 24 59 24 59 25 34 25 60 25 60 26 34 26 61 26 61 27 34 27 62 27 62 28 34 28 63 28 63 29 34 29 64 29 64 30 34 30 65 30 65 31 34 31 33 31 49 32 57 32 65 32 65 33 33 33 35 33 35 32 36 32 65 32 37 32 38 32 39 32 39 32 40 32 41 32 41 32 42 32 43 32 43 32 44 32 41 32 45 34 46 34 47 34 47 32 48 32 45 32 49 32 50 32 53 32 51 35 52 35 53 35 53 36 54 36 57 36 55 37 56 37 57 37 57 38 58 38 59 38 59 39 60 39 61 39 61 32 62 32 65 32 63 32 64 32 65 32 65 32 36 32 37 32 37 32 39 32 41 32 41 40 44 40 45 40 45 41 48 41 49 41 50 42 51 42 53 42 54 43 55 43 57 43 57 44 59 44 65 44 62 32 63 32 65 32 65 32 37 32 41 32 41 32 45 32 65 32 49 32 53 32 57 32 59 32 61 32 65 32 65 32 45 32 49 32

-
- - - - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 -

0 45 1 45 2 45 2 46 1 46 3 46 3 47 1 47 4 47 4 48 1 48 5 48 5 49 1 49 6 49 6 50 1 50 7 50 7 51 1 51 8 51 8 52 1 52 9 52 9 53 1 53 10 53 10 54 1 54 11 54 11 55 1 55 12 55 12 56 1 56 13 56 13 57 1 57 14 57 14 58 1 58 15 58 15 59 1 59 16 59 16 60 1 60 17 60 17 61 1 61 18 61 18 62 1 62 19 62 19 63 1 63 20 63 20 64 1 64 21 64 21 65 1 65 22 65 22 66 1 66 23 66 23 67 1 67 24 67 24 68 1 68 25 68 25 69 1 69 26 69 26 70 1 70 27 70 27 71 1 71 28 71 28 72 1 72 29 72 29 73 1 73 30 73 30 74 1 74 31 74 31 75 1 75 32 75 32 76 1 76 0 76 16 77 24 77 8 77 32 78 0 78 2 78 2 79 3 79 4 79 4 80 5 80 8 80 6 81 7 81 8 81 8 82 9 82 10 82 10 83 11 83 8 83 12 83 13 83 14 83 14 84 15 84 16 84 16 85 17 85 20 85 18 86 19 86 20 86 20 83 21 83 22 83 22 87 23 87 24 87 24 88 25 88 26 88 26 89 27 89 24 89 28 90 29 90 32 90 30 91 31 91 32 91 32 92 2 92 8 92 5 93 6 93 8 93 8 83 11 83 12 83 12 83 14 83 16 83 17 94 18 94 20 94 20 83 22 83 24 83 24 95 27 95 28 95 29 96 30 96 32 96 2 97 4 97 8 97 8 83 12 83 16 83 16 98 20 98 24 98 24 99 28 99 32 99 32 100 8 100 24 100

-
-
-
-
- - - - - 1.371841 -0.6480269 1.303116 10.0091 1.455353 0.6108417 -1.228341 -10.6572 0 1.790791 0.8905428 5.77815 0 0 0 1 - - - - -0.5817293 -1.542202 1.132786 3.199329 1.910342 -0.3997668 0.4367824 4.368987 -0.1103781 1.20905 1.589345 6.898543 0 0 0 1 - - - - 0.1515022 -3.01124e-7 -1.994254 -0.08696911 9.66666e-15 -2 3.01991e-7 -0.01857066 -1.994254 -2.28762e-8 -0.1515022 1.334178 0 0 0 1 - - - - - - - - - - - -0.5817293 -1.542202 1.132787 3.199328 1.910342 -0.3997667 0.4367824 4.368987 -0.1103781 1.209049 1.589345 6.898543 0 0 0 1 - - - - 1.371841 -0.6480269 1.303116 10.0091 1.455353 0.6108417 -1.228341 -10.6572 -8.02266e-9 1.790791 0.8905428 5.77815 0 0 0 1 - - - - 1.371841 -0.6480269 1.303116 10.0091 1.455353 0.6108417 -1.228341 -10.6572 -8.02266e-9 1.790791 0.8905428 5.77815 0 0 0 1 - - - - -0.5817293 -1.542202 1.132787 3.199328 1.910342 -0.3997667 0.4367824 4.368987 -0.1103781 1.209049 1.589345 6.898543 0 0 0 1 - - - - - - - -
\ No newline at end of file diff --git a/src/main/resources/views/RaceView.fxml b/src/main/resources/views/RaceView.fxml index 2d0769af..c2e415a0 100644 --- a/src/main/resources/views/RaceView.fxml +++ b/src/main/resources/views/RaceView.fxml @@ -1,14 +1,5 @@ - - - - - - - - - @@ -21,6 +12,7 @@ + - + diff --git a/src/main/resources/views/cells/WindCell.fxml b/src/main/resources/views/cells/WindCell.fxml new file mode 100644 index 00000000..ef81b1b5 --- /dev/null +++ b/src/main/resources/views/cells/WindCell.fxml @@ -0,0 +1,7 @@ + + + + + +