Add Test Textured Object
This commit is contained in:
parent
09972ee740
commit
596c2811c1
16 changed files with 54575 additions and 61096 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue