1
0
Fork 0

Add House

This commit is contained in:
Florian RICHER 2016-12-02 02:43:36 +01:00
parent 4b77eabeb7
commit c6f69b0a2c
12 changed files with 1952 additions and 62049 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 768 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 MiB

View file

@ -1,82 +0,0 @@
#
#
newmtl Bane3Chest
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd Bane3_Chest_D.tga
newmtl Bane3Coverlid
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd Bane3_Stuff_D.tga
newmtl Bane3Eyes
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd Bane3_Eye_D.tga
newmtl Bane3Head
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd Bane3_Head_D.tga
newmtl Bane3Mouth
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd Bane3_Mouth_D.tga
newmtl Bane3Pants
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd Bane3_Pants_D.tga
newmtl Bane3Pipes
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd Bane3_Stuff_D.tga
newmtl Bane3Stuff
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd Bane3_Stuff_D.tga

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

32
assets/house.mtl Normal file
View file

@ -0,0 +1,32 @@
# Blender MTL File: 'house.blend'
# Material Count: 3
newmtl Material
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
newmtl Material.001
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
newmtl Material.004
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

1910
assets/house.obj Normal file

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,7 @@ function runDemo(canvasId) {
// Cr<43>ation de la sc<73>ne
var scene = new BABYLON.Scene(engine);
var loader = new BABYLON.AssetsManager(scene);//Obj loader
var loader = new BABYLON.AssetsManager(scene);//Obj loader
BABYLON.OBJFileLoader.OPTIMIZE_WITH_UV = true;
scene.gravity = new BABYLON.Vector3(0, -9.81, 0);
scene.collisionsEnabled = true;
@ -67,14 +67,20 @@ function runDemo(canvasId) {
}
function createObj(loader,scene){
var batman = loader.addMeshTask("bunny", "", "assets/", "Bane_3.obj");
batman.onSuccess = function(t){
var house = loader.addMeshTask("house", "", "assets/", "house.obj");
house.onSuccess = function(t){
t.loadedMeshes.forEach(function(m) {//m = model
m.position.x = 10;
m.position.x = 20;
m.position.y = -2;
m.position.z = 20;
m.scaling = new BABYLON.Vector3(1, 1, 1);
m.checkCollisions = true;
});
};
// BABYLON.SceneLoader.ImportMesh("test", "assets/", "house.babylon", scene, function (newMeshes){
// modele = newMeshes;
// modele.rotation.x = 10;
// });
}
function createSkybox(scene) {