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
18 Apr 2024 23:38:30 EDT (-0400)
  Re: Importing an image to use on pov ray and overlaying a line  
From: jr
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

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