POV-Ray : Newsgroups : povray.newusers : A newbie question Server Time
14 Nov 2024 02:23:54 EST (-0500)
  A newbie question (Message 1 to 4 of 4)  
From: SWIFT ETEBA
Subject: A newbie question
Date: 28 Jul 1999 08:04:17
Message: <379ef1c1@news.povray.org>
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.
How can I define the units by which I can mesure an object?
Thanks in advance.
TAKIS


Post a reply to this message

From: Markus Becker
Subject: Re: A newbie question
Date: 28 Jul 1999 08:26:11
Message: <379EF859.5B28634E@zess.uni-siegen.de>
SWIFT ETEBA 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?

Read in the documentation about image_map.

> And another thing.
> How can I define the units by which I can mesure an object?

As you like it.

#declare meter = (1);
#declare cm    = (meter/100);

and so on, and then use it:

object
{
  sphere 0,0.5*meter
  translate 125*cm*x
}

Markus


Post a reply to this message

From: Nieminen Mika
Subject: Re: A newbie question
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

From: Bob Hughes
Subject: Re: A newbie question
Date: 28 Jul 1999 16:03:37
Message: <379f6219@news.povray.org>
Think the mention of a cube face being used for the image might need a
mention also about scaling the 'image_map' down ever so slightly in both
x and y dimensions so as not to cause interference with the other sides
of the cube. This goes for whether it is applied via map_type 1 with or
without the 'once' keyword. If you wish to leave a broader border be
sure and include 'once' in the 'image_map'.


Nieminen Mika wrote:
> 
> 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 -*/

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto://inversez@aol.com?Subject=PoV-News


Post a reply to this message

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