1
0
Fork 0

Set scaling

This commit is contained in:
Florian RICHER 2016-12-02 01:10:40 +01:00
parent 346ec61950
commit 3997bbd2da
8 changed files with 61096 additions and 3 deletions

BIN
assets/humbird/HUMBIRD.3DS Normal file

Binary file not shown.

53286
assets/humbird/HUMBIRD.DXF Normal file

File diff suppressed because it is too large Load diff

BIN
assets/humbird/humbird.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
assets/humbird/humbird.lwo Normal file

Binary file not shown.

View file

@ -0,0 +1,16 @@
# 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

7790
assets/humbird/humbird.obj Normal file

File diff suppressed because it is too large Load diff

BIN
assets/humbird/humbird.tif Normal file

Binary file not shown.

View file

@ -67,11 +67,12 @@ function runDemo(canvasId) {
}
function createObj(loader,scene){
var batman = loader.addMeshTask("bunny", "", "assets/", "bunny.obj");
var batman = loader.addMeshTask("bunny", "", "assets/humbird/", "humbird.obj");
batman.onSuccess = function(t){
t.loadedMeshes.forEach(function(m) {
t.loadedMeshes.forEach(function(m) {//m = model
m.position.x = 10;
m.scale = 100;
m.scaling = new BABYLON.Vector3(20, 20, 20);
m.checkCollisions = true;
});
};
}