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
15 Aug 2022 10:07:42 EDT (-0400)
  Re: Importing an image to use on pov ray and overlaying a line  
From: jr
Date: 17 Jul 2022 14:30:00
Message: <web.62d45459df954fb91be3cd4b6cde94f1@news.povray.org>
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.


Post a reply to this message

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