mrdoob/three.js — Issue #1093: JSON Loader - Texture Issue 
Author: yagiz
Created: 2012-01-12 18:24:48+00:00
State: open

Hi all,

This is my model: http://yagiz.me/model/zombi.js
This is its texture: http://yagiz.me/model/zombi.png

And this is how I load it:

function loadModel() {
var loader = new THREE.JSONLoader();
var callback = function( geometry ) {
var mesh = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { map : new THREE.Texture( "models/zombi/zombi.png" ) } ));
scene.addObject( mesh );
};

loader.load( "models/zombi/zombi.js", callback);
}

Model has a UV data but I can't see the texture. It's all black? What do you think?