|
![](/i/fill.gif) |
dans le message de news: 3e2cc44c@news.povray.org...
> Anyone know how to take 6 hdr pictures which make up a cubic environment
map
> and make them into a lightprobe type image that mlpov will accept?
I'm currently using this for Terragen-made HDRs (no bottom though as there's
usually a real one in the scene). It's not perfect but the spherical mapping
has drawbacks too.
#declare Pane=union{triangle{0,x,x+y} triangle{0,y,x+y}}
#declare Panoramic=union{
#declare A=1.3;
object{Pane texture{pigment{image_map{hdr "mohave0901" interpolate
2}} finish{ambient A diffuse 0}}}
object{Pane texture{pigment{image_map{hdr "mohave0902" interpolate
2}} finish{ambient A diffuse 0}} rotate y*90 translate x}
object{Pane texture{pigment{image_map{hdr "mohave0903" interpolate
2}} finish{ambient A diffuse 0}} rotate y*180 translate x-z}
object{Pane texture{pigment{image_map{hdr "mohave0904" interpolate
2}} finish{ambient A diffuse 0}} rotate y*270 translate -z}
object{Pane texture{pigment{image_map{hdr "mohave0905" interpolate
2}} finish{ambient A diffuse 0}} rotate -x*90 translate y}
translate z*0.5-x*0.5-y*0.5
}
object{Panoramic}
Post a reply to this message
|
![](/i/fill.gif) |