mrdoob/three.js — Issue #1285: How to add shadow to a *.dae model? 
Author: fllubo
Created: 2012-02-09 03:31:45+00:00
State: open

Hello Mr.doob,I have seen the example http://learningthreejs.com/blog/2012/01/20/casting-shadows/ but when I'm trying to add a *.dea model to the scence ,there isn't any shadow of my model.
I load the model with code :
// here you add your objects
var loader = new THREE.ColladaLoader();
loader.options.convertUpAxis = true;
loader.load( 'teapot.dae', function colladaReady( collada ) {
dae = collada.scene;
skin = collada.skins[ 0 ];
dae.scale.x = dae.scale.y = dae.scale.z = 0.2;
dae.castShadow = true;
dae.receiveShadow = true;
scene.add(dae);
} );

the whole code are as fllow:

learningthree.js boiler plate for three.js

LearningThree.js
Demo for Casting Shadows

- p for screenshot