javascript - three.js wrong material render from mtl file -


i'm trying import .obj file , .mtl file in application.

 var mtlloader = new three.mtlloader();     mtlloader.load( 'models/tree/tree.mtl', function( materials ) {     materials.preload();     var objloader = new three.objloader();                 objloader.setmaterials(materials);                 objloader.load( 'models/tree/tree.obj', function ( object ) {                     object.scale.x = 75.0;                     object.scale.y = 75.0;                     object.scale.z = 75.0;                     object.position.x = step/2;                     object.position.z = step/2;                     scene.add( object );                 });     }); 

the object added correctly scene material not showed although have imported .mtl file. suggestions?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -