POV-Ray : Newsgroups : povray.general : Importing an image to use on pov ray and overlaying a line Server Time
16 Jun 2024 10:56:10 EDT (-0400)
  Importing an image to use on pov ray and overlaying a line (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: jr
Subject: Re: Importing an image to use on pov ray and overlaying a line
Date: 19 Jul 2022 03:35:00
Message: <web.62d65d3adf954fb91be3cd4b6cde94f1@news.povray.org>
hi,

"6digit" <eob### [at] gmailcom> wrote:
> ...
> > Could you please advise on scaling the object because I am having trouble scaling
it.

will try :-).

say your input photo/image is 1920x1080 pixels.  then, to get from "square"
image_map to correct proportion, a 'scale <1.92,1.08,1>' would restore the
aspect[*].  as for where to place the 'scale', fwiw, I tend to make it part of
the 'texture' or 'pigment' containing the map.  eg:
  plane {
    z,1
    texture {
      pigment { ...the image_map... }
    }
    scale <1.92,1.08,1>
  }

[*] approximate/close is often good enough.  for instance, for one of my
project's, the source jpg is 624x351 and I use a 'scale <10,6,1>'


regards, jr.


Post a reply to this message

From: jr
Subject: Re: Importing an image to use on pov ray and overlaying a line
Date: 19 Jul 2022 04:00:00
Message: <web.62d6642adf954fb91be3cd4b6cde94f1@news.povray.org>
oops.

"jr" <cre### [at] gmailcom> wrote:
>   plane {
>     z,1
>     texture {
>       pigment { ...the image_map... }
>     }
>     scale <1.92,1.08,1>
>   }

should have been:
  plane {
    z,1
    texture {
      pigment { ...the image_map... }
      scale <1.92,1.08,1>
    }
  }

(typing.. :-))


regards, jr.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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