1

I am using THREE.ImageUtils to load maps and bumpmaps.The grayscale image of the maps are used as bumpmaps .on adding bump maps it doesnt gives any effect on it.

var material = new THREE.MeshLambertMaterial({ side: THREE.DoubleSide });

material.map = THREE.ImageUtils.loadTexture('http://i.imgur.com/ZjBRB2d.jpg');
material.bumpMap = THREE.ImageUtils.loadTexture('http://i.imgur.com/tz483el.jpg'); 

code

Is Repeat Wrapping of bumpmaps are possible as maps ?

WestLangley
  • 102,557
  • 10
  • 276
  • 276
ArUn
  • 1,317
  • 2
  • 23
  • 39

1 Answers1

2

MeshLambertMaterial does not support bump maps. Try MeshPhongMaterial or MeshStandardMaterial.

Bump maps support repeat wrapping, but as explained in this answer if you have a diffuse map, too, the map and bump map must have the same repeat setting.

This limitation may be changed in a future release.

three.js r.77

Community
  • 1
  • 1
WestLangley
  • 102,557
  • 10
  • 276
  • 276
  • out of the question .. How can i implement cloth visualisation in an effective way . – ArUn May 23 '16 at 07:44
  • I recommend you study the [three.js cloth animation example](http://threejs.org/examples/webgl_animation_cloth.html). – WestLangley May 23 '16 at 07:57
  • I updated the material to `MeshPhongMaterial `, still there is no change , i tried adding normal map too, which also giving same result, but `MeshStandardMaterial` works :) – ArUn May 23 '16 at 14:12
  • `MeshPhongMaterial` supports both normal maps and bump maps. – WestLangley May 23 '16 at 18:03