1
0
Fork 0

Add Test Textured Object

This commit is contained in:
Florian RICHER 2016-12-02 01:27:38 +01:00
parent 09972ee740
commit 596c2811c1
16 changed files with 54575 additions and 61096 deletions

View file

@ -67,11 +67,11 @@ function runDemo(canvasId) {
}
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){
t.loadedMeshes.forEach(function(m) {//m = model
m.position.x = 10;
m.scaling = new BABYLON.Vector3(20, 20, 20);
m.scaling = new BABYLON.Vector3(1, 1, 1);
m.checkCollisions = true;
});
};
@ -92,7 +92,7 @@ function createSkybox(scene) {
function createDemoScene(scene) {
// Cr<43>ation d'un sol
var groundMaterial = new BABYLON.StandardMaterial("ground", scene);
@ -244,7 +244,7 @@ function createDemoScene(scene) {
groundSalle3.rotation.x = Math.PI / 2;
groundSalle3.position.z = 140;
groundSalle3.material = new BABYLON.StandardMaterial("gMaterial", scene);
groundSalle3.material = groundMaterial;
groundSalle3.material = groundMaterial;
groundSalle3.checkCollisions = true;
var mur11Salle3 = BABYLON.Mesh.CreatePlane("mur11Salle3", 20, scene);