POV-Ray : Newsgroups : povray.newusers : A newbie question : Re: A newbie question Server Time
5 Sep 2024 22:21:41 EDT (-0400)
  Re: A newbie question  
From: Nieminen Mika
Date: 28 Jul 1999 09:59:27
Message: <379f0cbf@news.povray.org>
SWIFT ETEBA <swi### [at] etebagr> wrote:
: I am trying to put an image (.bmp, .gif, etc) inside a wood frame.
: Or in other words I am trying to fit an image exactly in a finite plane
: (like the sides of a cube). Is there any suggestions?
: And another thing.

box
{ 0, <1, 1, .01>
  pigment { image_map { ... } }
  translate <-.5, -.5, 0>
  scale <ImagemapWidth/ImagemapHeight, 1, 1>

  (other transformations...)
}

  The image will exactly fill the box. The height of the box is 1 and the
width depends on the aspect ratio of the image map. (Of course you have to
define ImagemapWidth and ImagemapHeight by yourself)

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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