Search code examples
three.jsversions

Three js revision 71 at THREE.MeshFaceMaterial dont work proper


While at the revision "66" when i use THREE.MeshFaceMaterial to load the textures of a tree model everything works fine.. and when i replace the three.min.js r66 with r71 the MeshFaceMaterial shows a black model.

Any ideas about r66-r71 changes?

i found a solution to my problem using r70 revision!(that was quick)! :)


Solution

  • Same problem here. After blind investigation I found that some materials have opacity 0. The solution is to modify your three r71 library where

    		// modifiers
    
    		if ( m.transparency !== undefined ) {
    
    			console.warn( 'THREE.Loader: transparency has been renamed to opacity' );
    			m.opacity = m.transparency;
    
    		}

    change to

    		// modifiers
    
    		if ( m.transparency !== undefined ) {
    
    			console.warn( 'THREE.Loader: transparency has been renamed to opacity' );
    			m.opacity = m.transparency;
    
    		} else {
    		    m.opacity = 1;			
    		}

    Can't wait for r72!