kvark / obj

Basic Wavefront OBJ loader
Apache License 2.0
29 stars 12 forks source link

Add map_Disp #28

Closed faulesocke closed 3 years ago

faulesocke commented 3 years ago

The mtl parser currently does not seem to support displacement maps via map_Disp or disp. Wikipedia on this:

https://en.wikipedia.org/wiki/Wavefront_.obj_file#Texture_maps

Although this option does not appear in the original specification from 1995, it is quite common and for example used in Cryteks very popular Sponza model:

https://github.com/jimmiebergmann/Sponza