CesiumGS / obj2gltf

Convert OBJ assets to glTF
Apache License 2.0
1.7k stars 305 forks source link

Bump map treated as normal maps #146

Open d07RiV opened 6 years ago

d07RiV commented 6 years ago

In OBJ materials, bump maps represent a heightmap (gray texture).

Instead of converting them into normal maps, this tool copies them as-is, which is incorrect.

lilleyse commented 6 years ago

Thanks for bringing this up @d07RiV. It's something I've thought about as well but never got to.

It's unfortunate... some obj's do store a normal map in the bump map channel. We would need to read the colors to confirm whether the image is a normal map or bump map and convert accordingly.