Add House
This commit is contained in:
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 |
|
@ -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
|
54489
assets/Bane_3.obj
54489
assets/Bane_3.obj
File diff suppressed because it is too large
Load diff
7474
assets/bunny.obj
7474
assets/bunny.obj
File diff suppressed because it is too large
Load diff
32
assets/house.mtl
Normal file
32
assets/house.mtl
Normal 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
1910
assets/house.obj
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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) {
|
||||
|
|
Reference in a new issue