Skip to content

JSON Loader - Texture Issue  #1093

@yagiz

Description

@yagiz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions