I am referring to this. Followed blender render method where the material is made transparent. I used PNG image as texture on a plane in blender. It is showing correctly in rendered mode in blender. But when I export it as obj and load obj & mtl in online 3d viewer or threejs, the object is not visible.
Blender file https://drive.google.com/file/d/1nfRLu_BzHYvycXZG5Jqjymj5eV6tYvxP/view?usp=sharing
Obj file https://drive.google.com/file/d/1gbxpyjpQCz-CG4I91S6XhsmRWyAR_HK_/view?usp=sharing
Mtl file https://drive.google.com/file/d/1lSrtM6Fxgsfrp_zUX_R3Fg_MzrIRCxpB/view?usp=sharing
PNG https://drive.google.com/file/d/1KBGWwm-iikbz14bfR9w0_iUb5N6Km_RP/view?usp=sharing
var mtlLoader = new THREE.MTLLoader();
mtlLoader.setTexturePath('models/');
mtlLoader.setPath( 'models/' );
var url = "spects_plane1.mtl";
mtlLoader.load( url, function( materials ) {
materials.preload();
var objLoader = new THREE.OBJLoader();
objLoader.setMaterials( materials );
objLoader.setPath( 'models/' );
objLoader.load( 'spects_plane1.obj', function ( object ) {
spectsObj.add(object);
},function ( xhr ) {
console.log( (xhr.loaded / xhr.total * 100) + '% loaded' );
},
function ( error ) {
console.log( 'An error happened' );
});
});
spectsObj.position.set(0, 0, -1);
scene.add(spectsObj);
var light = new THREE.PointLight( 0xffffff, 1, 0 );
light.position.set(1, 1, 1);
var hemiLight = new THREE.HemisphereLight(0xffffff, 0xffffff, 0.50);
var dirLight = new THREE.DirectionalLight(0xffffff, 0.50);
scene.add(light);