Question

I'm having issues getting a custom made collada object with no built in camera or lighting to render. I more or less copied what I had seen in a few collada examples to create my own loader, which looks like this:

var loader = new THREE.ColladaLoader();
var room, scene, stats;
loader.load('../Models/Rooms/boot.dae', function colladaReady( collada ){
    collada.scene.getChildByName('Cube',true).doubleSided = true;
    room = collada.scene;
    room.scale.x = room.scale.y = room.scale.z = 1;
    room.updateMatrix();
    init();
});

The init function is fairly basic and looks like this

scene = new THREE.Scene();
scene.add( room );
scene.add( camera );
renderer.render(scene, camera);

Here is the actual object I'm trying to render. I have also tried it out with the monster.dae file that is in the examples folder without success. The Chrome javascript console isn't showing any errors, so I'm not quite sure where to look in my code. It all resembles functional examples, so I'm not sure why it's not functional. Is there something I'm unaware of that is relevant to collada loading?

Was it helpful?

Solution

RESOLVED: The item was rendering, but had no skin or texture associated with it. So it was rendering at the same colour as the background, which understandably appears to not be rendering at all. Discovered by adding a grid to the ground just to check.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top