Being new to three.js, I have recently started exploring it. However, I am facing an issue where I am unable to assign a material to an object.
var objloader=new THREE.OBJLoader();
var material=new THREE.MeshNormalMaterial();
objloader.load('man.obj', function(object) {
object.position.y=-30;
object.material= material;
scene.add(object);
render();
});