|
|
"Jaime Vives Piqueres" <jai### [at] ignoranciaorg> wrote in message
news:42721f02@news.povray.org...
> Zeger Knaepen wrote:
> > My first reaction: "haha, very funny"
> > My second reaction: "ah, no, he probably just added his cars to this photo"
> > My third reaction: "OMG! this *isn't* a photo ?!?"
>
> I was tempted to do it with my main reference pic:
>
> http://home.att.net/~texhwyman/g_imgs/autobahn2b.jpg
>
> but I've not experience integrating renders with photos...
Well, for something like that, it's not that hard: the road can be just a plane
with the image projection_map'ed onto it:
//projection_map
#declare Pigment=function {pigment {image_map {jpg "autobahn2b.jpg" interpolate
2 } translate -.5}}
// perspectiveprojection: Px=x/z, Py=y/z, Pz=0
#declare Projection_pigment =
pigment {
average
pigment_map {
[function{Pigment(x/z,y/z,0).red} color_map {[0,rgb 0][1,red 4]}]
[function{Pigment(x/z,y/z,0).green} color_map {[0,rgb 0][1,green 4]}]
[function{Pigment(x/z,y/z,0).blue} color_map {[0,rgb 0][1,blue 4]}]
[function{Pigment(x/z,y/z,0).transmit}color_map {[0,rgb 0][1,transmit
4 ]}]
}
}
plane {y,0
texture {
pigment {Projection_pigment}
finish {ambient .5 diffuse .5 brilliance 2}
scale <4/3,1,1>
Reorient_Trans(z, camera_look_at-camera_location)
translate camera_location
}
that should do the trick.
cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x) // ZK http://www.povplace.be.tf
Post a reply to this message
|
|