parent
d5c15f7ee3
commit
0a84a43070
After Width: | Height: | Size: 738 B |
@ -0,0 +1,20 @@ |
|||||||
|
# Exported from Wings 3D 2.2.6.1 |
||||||
|
newmtl Cube2_auv |
||||||
|
Ns 19.999999999999996 |
||||||
|
d 1.0 |
||||||
|
illum 2 |
||||||
|
Kd 1.0 1.0 1.0 |
||||||
|
Ka 0.0 0.0 0.0 |
||||||
|
Ks 0.19 0.19 0.19 |
||||||
|
Ke 0.0 0.0 0.0 |
||||||
|
map_Kd auvBG.png |
||||||
|
|
||||||
|
newmtl default |
||||||
|
Ns 19.999999999999996 |
||||||
|
d 1.0 |
||||||
|
illum 2 |
||||||
|
Kd 0.7898538076923077 0.8133333333333334 0.6940444444444445 |
||||||
|
Ka 0.0 0.0 0.0 |
||||||
|
Ks 0.1689853807692308 0.17133333333333334 0.15940444444444446 |
||||||
|
Ke 0.0 0.0 0.0 |
||||||
|
|
@ -0,0 +1,73 @@ |
|||||||
|
# Exported from Wings 3D 2.2.6.1 |
||||||
|
mtllib plant.mtl |
||||||
|
o Cube2 |
||||||
|
#28 vertices, 32 faces |
||||||
|
v -3.2421582e-3 -1.5355904e-2 4.4110059e-3 |
||||||
|
v 0.98670734 -1.5355904e-2 0.99436050 |
||||||
|
v -3.2421582e-3 0.98464410 4.4110059e-3 |
||||||
|
v 0.98670734 0.98464410 0.99436050 |
||||||
|
v -3.2421582e-3 -1.5355904e-2 4.4110059e-3 |
||||||
|
v 0.98670734 -1.5355904e-2 0.99436050 |
||||||
|
v -3.2421582e-3 0.98464410 4.4110059e-3 |
||||||
|
v 0.98670734 0.98464410 0.99436050 |
||||||
|
v 0.49173259 0.48464410 0.49938575 |
||||||
|
v 0.49173259 0.48464410 0.49938575 |
||||||
|
v 0.49173259 -1.5355904e-2 0.49938575 |
||||||
|
v 0.49173259 0.98464410 0.49938575 |
||||||
|
v 0.49173259 -1.5355904e-2 0.49938575 |
||||||
|
v 0.49173259 0.98464410 0.49938575 |
||||||
|
v 0.98670734 -1.5355904e-2 4.4110059e-3 |
||||||
|
v -3.2421582e-3 -1.5355904e-2 0.99436050 |
||||||
|
v 0.98670734 0.98464410 4.4110059e-3 |
||||||
|
v -3.2421582e-3 0.98464410 0.99436050 |
||||||
|
v 0.98670734 -1.5355904e-2 4.4110059e-3 |
||||||
|
v -3.2421582e-3 -1.5355904e-2 0.99436050 |
||||||
|
v 0.98670734 0.98464410 4.4110059e-3 |
||||||
|
v -3.2421582e-3 0.98464410 0.99436050 |
||||||
|
v 0.49173259 0.48464410 0.49938575 |
||||||
|
v 0.49173259 0.48464410 0.49938575 |
||||||
|
v 0.49173259 -1.5355904e-2 0.49938575 |
||||||
|
v 0.49173259 0.98464410 0.49938575 |
||||||
|
v 0.49173259 -1.5355904e-2 0.49938575 |
||||||
|
v 0.49173259 0.98464410 0.49938575 |
||||||
|
vt 0.0000000e+0 -1.1102230e-16 |
||||||
|
vt 0.0000000e+0 2.2204460e-16 |
||||||
|
vt 2.2204460e-16 1.00000000 |
||||||
|
vt 2.2204460e-16 1.00000000 |
||||||
|
vt 0.50000000 0.0000000e+0 |
||||||
|
vt 0.50000000 2.2204460e-16 |
||||||
|
vt 0.50000000 0.50000000 |
||||||
|
vt 0.50000000 0.50000000 |
||||||
|
vt 0.50000000 1.00000000 |
||||||
|
vt 0.50000000 1.00000000 |
||||||
|
vt 1.00000000 1.1102230e-16 |
||||||
|
vt 1.00000000 -1.1102230e-16 |
||||||
|
vt 1.00000000 1.00000000 |
||||||
|
vt 1.00000000 1.00000000 |
||||||
|
g Cube2_Cube2_auv |
||||||
|
usemtl Cube2_auv |
||||||
|
s 1 |
||||||
|
f 1/1/ 9/7/ 3/3/ |
||||||
|
f 3/3/ 9/7/ 14/10/ |
||||||
|
f 4/13/ 9/7/ 2/12/ |
||||||
|
f 4/13/ 14/10/ 9/7/ |
||||||
|
f 5/11/ 10/8/ 11/6/ |
||||||
|
f 6/2/ 10/8/ 8/4/ |
||||||
|
f 6/2/ 11/6/ 10/8/ |
||||||
|
f 7/14/ 10/8/ 5/11/ |
||||||
|
f 9/7/ 13/5/ 2/12/ |
||||||
|
f 10/8/ 12/9/ 8/4/ |
||||||
|
f 12/9/ 10/8/ 7/14/ |
||||||
|
f 13/5/ 9/7/ 1/1/ |
||||||
|
f 15/1/ 23/7/ 17/3/ |
||||||
|
f 17/3/ 23/7/ 28/10/ |
||||||
|
f 18/13/ 23/7/ 16/12/ |
||||||
|
f 18/13/ 28/10/ 23/7/ |
||||||
|
f 19/11/ 24/8/ 25/6/ |
||||||
|
f 20/2/ 24/8/ 22/4/ |
||||||
|
f 20/2/ 25/6/ 24/8/ |
||||||
|
f 21/14/ 24/8/ 19/11/ |
||||||
|
f 23/7/ 27/5/ 16/12/ |
||||||
|
f 24/8/ 26/9/ 22/4/ |
||||||
|
f 26/9/ 24/8/ 21/14/ |
||||||
|
f 27/5/ 23/7/ 15/1/ |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,21 @@ |
|||||||
|
package sig.models; |
||||||
|
|
||||||
|
import sig.Block; |
||||||
|
import sig.BlockType; |
||||||
|
import sig.Mesh; |
||||||
|
import sig.Triangle; |
||||||
|
import sig.utils.OBJReader; |
||||||
|
|
||||||
|
public class Plant extends Mesh{ |
||||||
|
public Plant(BlockType type) { |
||||||
|
super(type); |
||||||
|
this.type=type; |
||||||
|
this.triangles=OBJReader.ReadOBJFile("models/plant.obj",true); |
||||||
|
for (Triangle t : triangles) { |
||||||
|
t.tex=type.getTexture(BlockType.FRONT); |
||||||
|
} |
||||||
|
} |
||||||
|
public boolean handleCollision(Block b,float x,float z) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue