Add Test Textured Object
BIN
assets/Bane3_Chest_D.tga
Normal file
After Width: | Height: | Size: 3 MiB |
BIN
assets/Bane3_Eye_D.tga
Normal file
After Width: | Height: | Size: 768 KiB |
BIN
assets/Bane3_Head_D.tga
Normal file
After Width: | Height: | Size: 3 MiB |
BIN
assets/Bane3_Mouth_D.tga
Normal file
After Width: | Height: | Size: 3 MiB |
BIN
assets/Bane3_Pants_D.tga
Normal file
After Width: | Height: | Size: 3 MiB |
BIN
assets/Bane3_Stuff_D.tga
Normal file
After Width: | Height: | Size: 3 MiB |
82
assets/Bane_3.mtl
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
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
Normal file
Before Width: | Height: | Size: 3.6 KiB |
|
@ -1,16 +0,0 @@
|
||||||
# Wavefront material library
|
|
||||||
# Tue Aug 03 07:54:36 1999
|
|
||||||
# Created with Viewpoint Interchange www.viewpoint.com
|
|
||||||
|
|
||||||
newmtl hum_body
|
|
||||||
Ka 0 0 0
|
|
||||||
Kd 0 0 0
|
|
||||||
Ks 0 0 0
|
|
||||||
illum 2
|
|
||||||
map_Kd images\humbird.tif
|
|
||||||
|
|
||||||
newmtl hum_eye
|
|
||||||
Ka 0 0 0
|
|
||||||
Kd 0.0392157 0.0117647 0.0117647
|
|
||||||
Ks 0.0392157 0.0117647 0.0117647
|
|
||||||
illum 2
|
|
|
@ -67,11 +67,11 @@ function runDemo(canvasId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function createObj(loader,scene){
|
function createObj(loader,scene){
|
||||||
var batman = loader.addMeshTask("bunny", "", "assets/humbird/", "humbird.obj");
|
var batman = loader.addMeshTask("bunny", "", "assets/", "Bane_3.obj");
|
||||||
batman.onSuccess = function(t){
|
batman.onSuccess = function(t){
|
||||||
t.loadedMeshes.forEach(function(m) {//m = model
|
t.loadedMeshes.forEach(function(m) {//m = model
|
||||||
m.position.x = 10;
|
m.position.x = 10;
|
||||||
m.scaling = new BABYLON.Vector3(20, 20, 20);
|
m.scaling = new BABYLON.Vector3(1, 1, 1);
|
||||||
m.checkCollisions = true;
|
m.checkCollisions = true;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -92,7 +92,7 @@ function createSkybox(scene) {
|
||||||
|
|
||||||
|
|
||||||
function createDemoScene(scene) {
|
function createDemoScene(scene) {
|
||||||
|
|
||||||
// Cr<43>ation d'un sol
|
// Cr<43>ation d'un sol
|
||||||
|
|
||||||
var groundMaterial = new BABYLON.StandardMaterial("ground", scene);
|
var groundMaterial = new BABYLON.StandardMaterial("ground", scene);
|
||||||
|
@ -244,7 +244,7 @@ function createDemoScene(scene) {
|
||||||
groundSalle3.rotation.x = Math.PI / 2;
|
groundSalle3.rotation.x = Math.PI / 2;
|
||||||
groundSalle3.position.z = 140;
|
groundSalle3.position.z = 140;
|
||||||
groundSalle3.material = new BABYLON.StandardMaterial("gMaterial", scene);
|
groundSalle3.material = new BABYLON.StandardMaterial("gMaterial", scene);
|
||||||
groundSalle3.material = groundMaterial;
|
groundSalle3.material = groundMaterial;
|
||||||
groundSalle3.checkCollisions = true;
|
groundSalle3.checkCollisions = true;
|
||||||
|
|
||||||
var mur11Salle3 = BABYLON.Mesh.CreatePlane("mur11Salle3", 20, scene);
|
var mur11Salle3 = BABYLON.Mesh.CreatePlane("mur11Salle3", 20, scene);
|
||||||
|
|