opengl es - Threejs not appying the texture to cube -


i struggling texture..
see http://jsfiddle.net/henros/e6zs9mcj/3/
can tell me why color cube not added..
see line 105 - 109

        var geometry2 = new three.boxgeometry(50,50,50);         var material2 = new three.meshbasicmaterial({color: 0x000000});         var cube2 = new three.mesh(geometry2, material2);         cube2.position.set(-300,0,25)         scene.add(cube2); 

the code defines fog seems interact geometry. disabling fog or setting i-don't-care-about-fog flag resolves issue.

    var material2 = new three.meshbasicmaterial({color: 0x000000, fog: false}); 

check scene setup.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -