JSON Loader - Texture Issue
See original GitHub issueHi 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?
Issue Analytics
- State:
- Created 12 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
JSON Loader callback is fired before textures are mapped to ...
i am using JSONLoader to load 3d models to my scene .. then i stop the rendering loop to avoid cpu overhead while...
Read more >Three.js JSONLoader texture issues - Stack Overflow
I'm trying to learn three.js so my next personal chalenge was to import a model from blender, everything went well but some of...
Read more >ObjectLoader not loading textures from JSON - three.js forum
Hi, im having issues with the THREE.ObjectLoader() not loading the textures from a JSON I exported with the .toJSON() function of an object ......
Read more >[Solved]-Three.js JSONLoader texture issues-three.js
In this case, the exporter has incorrectly guessed Tree_Bark_Tiled.png is a light map instead of a diffuse map. To fix this, change all...
Read more >Promise loading with Three.js - ITNEXT
TextureLoader.load() returns a Texture, which is updated when the image is loaded. JSONLoader.load() is passed a onComplete callback, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally