POV-Ray : Newsgroups : povray.general : fit imported image to screen : Re: fit imported image to screen Server Time
8 Aug 2022 21:13:20 EDT (-0400)
  Re: fit imported image to screen  
From: jr
Date: 21 Jul 2022 04:30:00
Message: <web.62d90e0c5cc658d21be3cd4b6cde94f1@news.povray.org>
hi,

"6digit" <eob### [at] gmailcom> wrote:
> please i would like help with an issue I have.
> ....

"below I have posted ... the current code i have"

well, most code, probably, I need a '#version' and things, too, to make POV-Ray
happy ;-).  have included an alternative to m@b's suggestion, fwiw.


regards, jr.


-----<snip>-----
#version 3.8;

global_settings {assumed_gamma 1}

// dims, divided by 1000.
#declare w_ = 2.752;
#declare h_ = 4.896;

// map.
#declare p_ = pigment {
  image_map {png "6dig.png" once map_type 0 interpolate 2}
};

// lights, camera, action.

light_source {<-1,1,-1>*1000 color srgb 1 parallel}

camera {
  location <w_/2,h_/2,-15>
  right x * (w_/h_)
  up y
  look_at <w_/2,h_/2,0>
}

box {
  0, <w_,h_,.1>
  texture {
    pigment {p_}
    scale <w_,h_,1>
  }
}
-----<snip>-----


Post a reply to this message

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