I'm a beginner with Three.JS and I'm attempting to import a simple Sketchup model (a single cube) into Three.JS using the ColladaLoader. Although I am not receiving any errors, nothing is being displayed on the screen:
var renderer = new THREE.WebGLRenderer();
var loader = new THREE.ColladaLoader();
var scene = new THREE.Scene();
var camera = new THREE.Camera();
loader.load('Test.dae', function (result) {
scene.add(result.scene);
});
camera = new THREE.PerspectiveCamera(35, window.innerWidth / window.innerHeight, 1, 10000 );
camera.position.set(0, 0, 5);
scene.add(camera);
renderer.render(scene,camera);
Could someone identify any immediate mistakes? Appreciate it!