Added boat model for 3x1 boats
@ -37,6 +37,7 @@ class SeaSynchronizer extends ShipMapSynchronizer {
|
||||
private static final String KING_GEORGE_V_MODEL = "Models/KingGeorgeV/KingGeorgeV.j3o"; //NON-NLS
|
||||
private static final String SMALL_SHIP_MODEL = "Models/SmallShip/SmallShip.j3o"; //NON-NLS
|
||||
private static final String U_BOAT_MODEL = "Models/WWII_ship_German_Type_II_U-boat_v2/WW2Uboat.j3o"; //NON-NLS
|
||||
private static final String TUG_BOAT_MODEL = "Models/TugBoat/TugBoat.j3o"; //NON-NLS
|
||||
private static final String COLOR = "Color"; //NON-NLS
|
||||
private static final String SHIP = "ship"; //NON-NLS
|
||||
private static final String SHOT = "shot"; //NON-NLS
|
||||
@ -146,6 +147,10 @@ class SeaSynchronizer extends ShipMapSynchronizer {
|
||||
switch (ship.getLength()) {
|
||||
case 4:
|
||||
return createBattleship(ship);
|
||||
|
||||
case 3:
|
||||
return createLargeship(ship);
|
||||
|
||||
case 2:
|
||||
return createMediumship(ship);
|
||||
|
||||
@ -230,6 +235,16 @@ class SeaSynchronizer extends ShipMapSynchronizer {
|
||||
return model;
|
||||
}
|
||||
|
||||
private Spatial createLargeship(Battleship ship) {
|
||||
final Spatial model = app.getAssetManager().loadModel(TUG_BOAT_MODEL);
|
||||
|
||||
model.rotate(-HALF_PI, calculateRotationAngle(ship.getRot()), 0f);
|
||||
model.scale(0.0004f);
|
||||
model.setShadowMode(ShadowMode.CastAndReceive);
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 47 KiB |
@ -44,7 +44,7 @@ public class ModelExporter extends SimpleApplication {
|
||||
export("Models/KingGeorgeV/King_George_V.obj", "KingGeorgeV.j3o"); //NON-NLS
|
||||
export("Models/SmallShip/12219_boat_v2_L2.obj", "SmallShip.j3o"); //NON-NLS
|
||||
export("Models/WWII_ship_German_Type_II_U-boat_v2/14084_WWII_Ship_German_Type_II_U-boat_v2_L1.obj", "WW2Uboat.j3o"); //NON-NLS
|
||||
|
||||
export("Models/TugBoat/12218_tugboat_v1_L2.obj", "TugBoat.j3o"); //NON-NLS
|
||||
stop();
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 47 KiB |
@ -0,0 +1,154 @@
|
||||
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
|
||||
# File Created: 21.12.2011 10:51:13
|
||||
|
||||
newmtl 12218_tugboat_tube
|
||||
Ns 40.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 1.0000 1.0000 1.0000
|
||||
Kd 1.0000 1.0000 1.0000
|
||||
Ks 0.1800 0.1800 0.1800
|
||||
Ke 0.0000 0.0000 0.0000
|
||||
map_Ka 12218_tugboat_tube_diffuse.jpg
|
||||
map_Kd 12218_tugboat_tube_diffuse.jpg
|
||||
|
||||
newmtl 12218_tugboat_cabine
|
||||
Ns 40.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 1.0000 1.0000 1.0000
|
||||
Kd 1.0000 1.0000 1.0000
|
||||
Ks 0.1800 0.1800 0.1800
|
||||
Ke 0.0000 0.0000 0.0000
|
||||
map_Ka 12218_tugboat_cabine_diffuse.jpg
|
||||
map_Kd 12218_tugboat_cabine_diffuse.jpg
|
||||
|
||||
newmtl 12218_tugboat_boat
|
||||
Ns 55.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 1.0000 1.0000 1.0000
|
||||
Kd 1.0000 1.0000 1.0000
|
||||
Ks 0.5400 0.5400 0.5400
|
||||
Ke 0.0000 0.0000 0.0000
|
||||
map_Ka 12218_tugboat_boat_diffuse.jpg
|
||||
map_Kd 12218_tugboat_boat_diffuse.jpg
|
||||
|
||||
newmtl 12218_tugboat_blackpaint
|
||||
Ns 40.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 0.1333 0.1333 0.1333
|
||||
Kd 0.1333 0.1333 0.1333
|
||||
Ks 0.1725 0.1725 0.1725
|
||||
Ke 0.0000 0.0000 0.0000
|
||||
|
||||
newmtl 12218_tugboat_yellowpaint
|
||||
Ns 55.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 0.8196 0.6588 0.1725
|
||||
Kd 0.8196 0.6588 0.1725
|
||||
Ks 0.6471 0.6471 0.6471
|
||||
Ke 0.0000 0.0000 0.0000
|
||||
|
||||
newmtl 12218_tugboat_crane
|
||||
Ns 55.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 0.6314 0.0588 0.0588
|
||||
Kd 0.6314 0.0588 0.0588
|
||||
Ks 0.6471 0.6471 0.6471
|
||||
Ke 0.0000 0.0000 0.0000
|
||||
|
||||
newmtl 12218_tugboat_orangepaint
|
||||
Ns 55.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 0.8627 0.2549 0.1137
|
||||
Kd 0.8627 0.2549 0.1137
|
||||
Ks 0.6471 0.6471 0.6471
|
||||
Ke 0.0000 0.0000 0.0000
|
||||
|
||||
newmtl 12218_tugboat_whitepaint
|
||||
Ns 60.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 0.8667 0.8667 0.8667
|
||||
Kd 0.8667 0.8667 0.8667
|
||||
Ks 0.7765 0.7765 0.7765
|
||||
Ke 0.0000 0.0000 0.0000
|
||||
|
||||
newmtl 12218_tugboat_greypaint
|
||||
Ns 55.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 0.3373 0.3412 0.3490
|
||||
Kd 0.3373 0.3412 0.3490
|
||||
Ks 0.6471 0.6471 0.6471
|
||||
Ke 0.0000 0.0000 0.0000
|
||||
|
||||
newmtl 12218_tugboat_bronze
|
||||
Ns 75.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 0.5529 0.4275 0.0000
|
||||
Kd 0.5529 0.4275 0.0000
|
||||
Ks 0.6471 0.6471 0.6471
|
||||
Ke 0.0000 0.0000 0.0000
|
||||
|
||||
newmtl 12218_tugboat_saferound
|
||||
Ns 10.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 1.0000 1.0000 1.0000
|
||||
Kd 1.0000 1.0000 1.0000
|
||||
Ks 0.2700 0.2700 0.2700
|
||||
Ke 0.0000 0.0000 0.0000
|
||||
map_Ka 12218_tugboat_saferound_diffuse.jpg
|
||||
map_Kd 12218_tugboat_saferound_diffuse.jpg
|
||||
|
||||
newmtl 12218_tugboat_dirtdark
|
||||
Ns 10.0000
|
||||
Ni 1.5000
|
||||
d 1.0000
|
||||
Tr 0.0000
|
||||
Tf 1.0000 1.0000 1.0000
|
||||
illum 2
|
||||
Ka 0.1216 0.1059 0.0863
|
||||
Kd 0.1216 0.1059 0.0863
|
||||
Ks 0.0000 0.0000 0.0000
|
||||
Ke 0.0000 0.0000 0.0000
|