print(" WARNING: texture image format not supported ")# % (imgF , "")) #(ext_orig)))
print(" WARNING: texture image format not supported ")
returnext
...
...
@@ -77,17 +77,22 @@ def imgMap(ts):
image_map="map_type 1 "# map_type 7 in megapov
elifts.mapping=='TUBE':
image_map="map_type 2 "
## map_type 3 and 4 in development (?)
## for POV-Ray, currently they just seem to default back to Flat (type 0)
#elif ts.mapping=="?":
# image_map = " map_type 3 " # map_type 3 and 4 in development (?) for POV-Ray, currently they just seem to default back to Flat (type 0)
# image_map = " map_type 3 "
#elif ts.mapping=="?":
# image_map = " map_type 4 " # map_type 3 and 4 in development (?) for POV-Ray, currently they just seem to default back to Flat (type 0)
# image_map = " map_type 4 "
ifts.texture.use_interpolation:
image_map+=" interpolate 2 "
ifts.texture.extension=='CLIP':
image_map+=" once "
#image_map += "}"
#if ts.mapping=='CUBE':
# image_map+= "warp { cubic } rotate <-90,0,180>" # no direct cube type mapping. Though this should work in POV 3.7 it doesn't give that good results(best suited to environment maps?)
# image_map+= "warp { cubic } rotate <-90,0,180>"
# no direct cube type mapping. Though this should work in POV 3.7
# it doesn't give that good results(best suited to environment maps?)
#if image_map == "":
# print(" No texture image found ")
returnimage_map
...
...
@@ -95,8 +100,9 @@ def imgMap(ts):
defimgMapBG(wts):
image_mapBG=""
# texture_coords refers to the mapping of world textures:
ifwts.texture_coords=='VIEW':
image_mapBG=" map_type 0 "# texture_coords refers to the mapping of world textures
image_mapBG=" map_type 0 "
elifwts.texture_coords=='ANGMAP':
image_mapBG=" map_type 1 "
elifwts.texture_coords=='TUBE':
...
...
@@ -108,7 +114,9 @@ def imgMapBG(wts):
image_mapBG+=" once "
#image_mapBG += "}"
#if wts.mapping == 'CUBE':
# image_mapBG += "warp { cubic } rotate <-90,0,180>" # no direct cube type mapping. Though this should work in POV 3.7 it doesn't give that good results(best suited to environment maps?)
# if t and t.texture.type == 'IMAGE' and t.use and t.texture.image and (t.use_map_specular or t.use_map_raymir or t.use_map_normal or t.use_map_alpha):
# special_texture_found = True
# continue # Some texture found
#if special_texture_found:
# if shader is a 'FRESNEL' or 'MINNAERT': slope pigment pattern or aoi
# and texture map above, the rest below as one of its entry