Index: export_obj.py =================================================================== --- export_obj.py (revision 3842) +++ export_obj.py (working copy) @@ -112,20 +112,28 @@ image = mtex.texture.image if image: # texface overrides others - if mtex.use_map_color_diffuse and face_img is None: + if mtex.use_map_color_diffuse and face_img is None and mtex.texture_coords != 'REFLECTION' and not mtex.use_map_warp: image_map["map_Kd"] = image if mtex.use_map_ambient: image_map["map_Ka"] = image - if mtex.use_map_specular: + #if mtex.use_map_specular: #this is the Spec intensity channel but Ks stands for specular Color + # image_map["map_Ks"] = image + if mtex.use_map_color_spec: #specular color image_map["map_Ks"] = image + if mtex.use_map_hardness: #specular hardness/glossiness + image_map["map_Ns"] = image if mtex.use_map_alpha: image_map["map_d"] = image if mtex.use_map_translucency: image_map["map_Tr"] = image - if mtex.use_map_normal: + if mtex.use_map_normal and texture.use_normal_map == True: image_map["map_Bump"] = image - if mtex.use_map_hardness: - image_map["map_Ns"] = image + if mtex.use_map_normal and texture.use_normal_map == False: + image_map["map_Disp"] = image + if mtex.use_map_color_diffuse and mtex.texture_coords=='REFLECTION': + image_map["map_refl"] = image + if mtex.use_map_color_emission: + image_map["map_Ke"] = image for key, image in image_map.items(): filepath = bpy_extras.io_utils.path_reference(image.filepath, source_dir, dest_dir, path_mode, "", copy_set, image.library)