Added 3D window to GameView3D to begin adding assets to. Used it to refine all 3D assets implemented by ModelFactory and manually test that they work.

#implement #test
This commit is contained in:
cir27
2017-09-08 01:51:31 +12:00
parent 0bf6dd9e6b
commit 62f139c604
@@ -52,7 +52,7 @@ public class GameView3D {
Sphere bottom = new Sphere(1); Sphere bottom = new Sphere(1);
bottom.setMaterial(new PhongMaterial(Color.BLANCHEDALMOND)); bottom.setMaterial(new PhongMaterial(Color.BLANCHEDALMOND));
bottom.getTransforms().add(new Translate(0, Math.tan(Math.toRadians(FOV / 2)) * DEFAULT_CAMERA_DEPTH, 0)); bottom.getTransforms().add(new Translate(0, Math.tan(Math.toRadians(FOV / 2)) * DEFAULT_CAMERA_DEPTH, 0));
Node boat = ModelFactory.boatGameView(BoatMeshType.DINGHY, Color.BLUE).getAssets(); Node boat = ModelFactory.boatGameView(BoatMeshType.DINGHY, Color.BLUE).getAssets();
Node boat2 = ModelFactory.boatGameView(BoatMeshType.DINGHY, Color.BROWN).getAssets(); Node boat2 = ModelFactory.boatGameView(BoatMeshType.DINGHY, Color.BROWN).getAssets();
boat2.getTransforms().add(new Translate(0,20, 0)); boat2.getTransforms().add(new Translate(0,20, 0));