bordanenko Posted June 30, 2014 Share Posted June 30, 2014 Hi, I'm load 2 models and 2 textures..but the first one is ok...and the second texture not loading..it stays black. this is my code var jsonLoader = new THREE.JSONLoader();jsonLoader.load( "obj/MaleBody.js", addModelToScene01 );jsonLoader.load( "obj/MaleHead.js", addModelToScene02 );// addModelToScene function is called back after model has loaded var ambientLight = new THREE.AmbientLight(0x111111);scene.add(ambientLight); } // material function addModelToScene01( geometry, materials ) {var material = new THREE.MeshPhongMaterial( { map: THREE.ImageUtils.loadTexture('Maps/Body_diffuse.jpg') } ); android = new THREE.Mesh( geometry, material );android.scale.set(7,7,7);scene.add( android );} function addModelToScene02( geometry, materials ) {var material = new THREE.MeshPhongMaterial( { map: THREE.ImageUtils.loadTexture('Maps/Head_diffuse.jpg') } ); android = new THREE.Mesh( geometry, material );android.scale.set(7,7,7);scene.add( android );} Any Ideias what i'm doing wrong? Quote Link to comment Share on other sites More sharing options...
hyperionlord Posted July 8, 2014 Share Posted July 8, 2014 did you fix this yet? I've spent the last week trying to solve black texture problems, so I have some idea about them. Try double checking the file-names are correct and uploaded in the right places. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.