Set scaling
This commit is contained in:
parent
346ec61950
commit
3997bbd2da
8 changed files with 61096 additions and 3 deletions
BIN
assets/humbird/HUMBIRD.3DS
Normal file
BIN
assets/humbird/HUMBIRD.3DS
Normal file
Binary file not shown.
53286
assets/humbird/HUMBIRD.DXF
Normal file
53286
assets/humbird/HUMBIRD.DXF
Normal file
File diff suppressed because it is too large
Load diff
BIN
assets/humbird/humbird.jpg
Normal file
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
BIN
assets/humbird/humbird.lwo
Normal file
Binary file not shown.
16
assets/humbird/humbird.mtl
Normal file
16
assets/humbird/humbird.mtl
Normal 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
7790
assets/humbird/humbird.obj
Normal file
File diff suppressed because it is too large
Load diff
BIN
assets/humbird/humbird.tif
Normal file
BIN
assets/humbird/humbird.tif
Normal file
Binary file not shown.
|
@ -67,11 +67,12 @@ function runDemo(canvasId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function createObj(loader,scene){
|
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){
|
batman.onSuccess = function(t){
|
||||||
t.loadedMeshes.forEach(function(m) {
|
t.loadedMeshes.forEach(function(m) {//m = model
|
||||||
m.position.x = 10;
|
m.position.x = 10;
|
||||||
m.scale = 100;
|
m.scaling = new BABYLON.Vector3(20, 20, 20);
|
||||||
|
m.checkCollisions = true;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue