0

I am new to both blender and threejs. I want to export and use a model developed in blender. I am using glTF2.0 to export this model. The following image is the rendered view of the model I want to use.enter image description here

Following options are enabled while exporting

enter image description here enter image description here

But when I load this model in threejs by using following code

loader.load('models/neuron.gltf',
        function ( gltf ) { 
            scene.add( gltf.scene);
        },function ( xhr ) {
            console.log( ( xhr.loaded / xhr.total * 100 ) + '% loaded' );
        },function ( error ) {
            console.log( 'An error happened' );
        }
    );

An end result is a 3D object without any material enter image description here

But I want my model to show materials also. Help me display models with materials from blender.

  • https://blender.stackexchange.com/questions/57531/fbx-export-why-there-are-no-materials-or-textures – Duarte Farrajota Ramos Jul 16 '18 at 16:52
  • You'll need to tell us something about the materials that are failing to appear — Cycles Nodes? Blender Render materials? Can you share a screenshot or the .blend file itself, ideally? Assuming you're using the Khronos Group exporter, see https://github.com/KhronosGroup/glTF-Blender-Exporter/blob/master/docs/user.md – Don McCurdy Jul 16 '18 at 17:07
  • My blend file is here - https://expirebox.com/download/8183231d1fdddd996a7d27683c9721cd.html – Dijish U.K Jul 17 '18 at 06:04

0 Answers0