|
 |
On 23/07/2022 1:31 pm, 6digit wrote:
> Good evening
>
> I have implemented the codes belonging to the 2 and 3 messages in this
>
threadhttp://news.povray.org/povray.general/thread/%3Cweb.62d84daeafca4da4d8145616fb08dd02%40news.povray.org%3E/
>
> what the codes basically do is import an image to fit the output screen.
>
> all I want to do is overlay a line over the image that was imported into povray.
> when I use povrays primitive objects they seem not to be behind the imported
> image. I say this because they are not coming up at all.
>
>
>
> so how do I make the object show over the imported image
> thank you
>
>
ghere is mt previous anwser rotated into the x, z, plane:
/////////////////////////////////////////////////////////////////////////
#declare image_width = 2592;
#declare image_height = 1944;
// perspective (default, not required) camera
camera {
orthographic
location <image_width/2, 10000, image_height/2,>
look_at <image_width/2, 0, image_height/2>
right x*image_width/1944 // aspect
//direction<3129.6857,3102.3533,0>
focal_point < 563.2927, 0, 1366.9001>
aperture 3.6171875
// direction z // direction and zoom
angle 16 // field (overrides direction zoom)
}
box{<0,0,0>,<1,1,0.001>
pigment {image_map {"D:/Files/Photos/Historic boats/027.JPG" once
map_type 0 interpolate 2 } }
finish {ambient 1 diffuse 0}
scale <image_width, image_height, 1>
rotate<90,0,0> // Rotate into the x,z plane
}
box{<0,0,0>,<900,2,-80> // Size
pigment{rgb<1,0,1>} // Colour
finish {ambient 1 diffuse 0} // Make it visible
translate<88,1,88> // Move it about (the y*1 puts it above
the image box)
}
////////////////////////////////////////////////////////////////////////
Post a reply to this message
|
 |