I attempted to modify the appearance of an object by adding an image, but all my tests resulted in a white object...
The goal is simply to apply an image to the entire object. Here is my test code:
var obj = scene.getObjectByName('wall_20_118')
var texture = new THREE.ImageLoader().load( 'core/img/3d/shutter.jpg' );
material = new THREE.MeshBasicMaterial({map: texture,side:THREE.DoubleSide });
obj.material = material
obj.material.map.needsUpdate = true
The object turns white, but I cannot see my image.
Any suggestions on how to achieve this?
Thank you in advance