|
|
On 8/12/2010 10:01 PM, chips24 wrote:
> I was looking through the 270 page manual for povray and i was wondering if it
> was possible to apply specularity maps, and if so- how?
>
>
>
I am sure it can be optimized but this is how is done in PoseRay for
POV-Ray output (thanks to several suggestions in this newsgroup):
#declare PR_MAP_DIFFUSE = pigment {image_map{jpeg
"E:\3D\textures\00.jpg" interpolate 2 transmit all 0}}
#declare PR_MAP_SPECULAR = pigment {image_map{jpeg
"E:\3D\textures\60.jpg" interpolate 2 }}
#declare PR_DIFFUSE=PR_MAP_DIFFUSE;
#declare F1=finish{specular 0 //Max highlight intensity: 0 -> 1
roughness 0.09632328 //surface roughness: 0.0005 -> 1
phong 0 phong_size 0 //Phong specular disabled
ambient rgb <0.00,0.00,0.00> //ambient RGB color:
0->1 for each component
diffuse 0.6
reflection{0} conserve_energy //reflection amount: 0
-> 1
}
#declare F2=finish{specular 0 //Max highlight intensity: 0 -> 1
roughness 0.0005 //surface roughness: 0.0005 -> 1
phong 0 phong_size 0 //Phong specular disabled
ambient rgb <0.00,0.00,0.00> //ambient RGB color:
0->1 for each component
diffuse 0.6
reflection{0} conserve_energy //reflection amount: 0
-> 1
}
material{
texture{uv_mapping
pigment_pattern{PR_MAP_SPECULAR translate<0,0,0>
scale<1,1,1> translate<0,0,0> rotate<0,0,0> translate<0,0,0> }
texture_map{
[0
pigment{PR_DIFFUSE translate<0,0,0>
scale<1,1,1> translate<0,0,0> rotate<0,0,0> translate<0,0,0> }
finish{F2}
]
[1
pigment{PR_DIFFUSE translate<0,0,0>
scale<1,1,1> translate<0,0,0> rotate<0,0,0> translate<0,0,0> }
finish{F1}
]
}
}
}
good luck,
FlyerX
Post a reply to this message
|
|