Closed azymohliad closed 4 years ago
Thanks @azymohliad ! Yeah the Ns
/map_NS
parameters are for the "shininess" term in the Blinn-Phong material model for OBJ. I'll add that later to the material as a new Ns/map_Ns parameter since I mixed up the names here it looks like.
Hello. So it seems
tobj
parses paths to normal maps incorrectly.According to wiki and MTL specification,
map_Ns
is related to specular highlights, not a normal map. And normal map isbump
by specs, plus wiki says that many implementations usemap_bump
and blender exportsmap_Bump
. I checked this part in obj crate implementation and it also checks for these three:bump
,map_bump
andmap_Bump
.And
Ns
probably needs another field inMaterial
structure, not sure about the name. I don't touch it here.