POV-Ray : Newsgroups : povray.general : Importing an image to use on pov ray and overlaying a line : Re: Importing an image to use on pov ray and overlaying a line Server Time
9 Oct 2024 02:32:59 EDT (-0400)
  Re: Importing an image to use on pov ray and overlaying a line  
From: 6digit
Date: 17 Jul 2022 21:25:00
Message: <web.62d4b5cedf954fb9d8145616fb08dd02@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> "6digit" <eob### [at] gmailcom> wrote:
> > Good evening,
> >
> > I'm new to pov ray, so I need help with some issues.
> > 1. how do I import an image into pov ray so I can overlay an object on it. I
> > have tried and used various threads. one suggested using something called screen
> > inc. the issue I'm having with this, is when I try to edit the camera it doesn't
> > seem to take any effect. so I was wondering if there's any other way of doing
> > this or could explain how the screen inc works.
>
> one way is using an 'image_map' as a pigment, something like:
>
>   plane {
>     z, 1
>     pigment {
>       image_map {"myimg.jpg" once map_type 0}
>     }
>   }
>
> and scale the object (or the pigment) to reflect the image dimensions.
> <https://wiki.povray.org/content/Reference:Image_Map>
>
>
> > 2. if I do import the image how do I draw a simple line overlayed on the image.
> > also, I have looked at many threads. they too suggested drawing a very tin box.
> > is there another way to do this?
>
> cylinders, usually, for a line.  afaik, no, you "only" have the choice from
> <https://wiki.povray.org/content/Reference:The_Object_Zoo>.  hth.
>
>
> regards, jr.


Thank you jr it worked fine but it appears theres a shadow as it is hard to see
the image.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.