user2758635
user2758635

Reputation: 137

blender2.8 gltf export for three.js with bumpmap or normalmap or roughnessmap?

I saw some discussions saying gltf does not export bumpmap but if I look into my exported gltf file (separate files mode) there is a bumpmap file with a bumpscale (and also normal map). After loading into three.js I get a meshstandard material with bumpmap object and scale value and also normalmap object. But they seem to have no effect on the rendered object. What is exactly allowed to do to export relief effect from Blender to Three.js with gltf ?

Upvotes: 2

Views: 1156

Answers (1)

emackey
emackey

Reputation: 12418

The only relief effect available in glTF is a tangent-space normal map, as shown here:

normal map example

Blender does have the ability to convert height maps and other kinds of bump maps to tangent-space normal maps, by way of the "Bake" function in Cycles. There are also online utilities that can do this as well.

Upvotes: 2

Related Questions