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
20 Apr 2024 06:08:24 EDT (-0400)
  Re: Importing an image to use on pov ray and overlaying a line  
From: 6digit
Date: 18 Jul 2022 22:00:00
Message: <web.62d60f42df954fb9d8145616fb08dd02@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>



> Could you please advise on scaling the object because I am having trouble scaling
it.




>
> > 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.


Post a reply to this message

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