POV-Ray : Newsgroups : povray.newusers : Add a Gif as Texture : Re: Add a Gif as Texture Server Time
4 Nov 2024 17:29:27 EST (-0500)
  Re: Add a Gif as Texture  
From: skrillian
Date: 23 Jun 2003 02:11:23
Message: <3ef69a0b$1@news.povray.org>
On Sun, 22 Jun 2003 06:23:56 -0400, Maik Schmidt wrote:

> Hi,
> 
> Hughes, B. wrote:
>> is what you are needing if you want it centered and showing as a floor
>> or ceiling oriented image. To explain further, you would need to adjust
>> position (size too) from the pigment statement for a y plane like
>> yours. The default is for z plane instead, with the lower left corner
>> being at <0,0,0> then up and right one unit to <1,1,0>.
> 
> Thank you. Now it works fine.. I've just overviewed this 90 degree turn
> of my plane.
> 
> I can finish my macro now...

	I find this to be more generally useful. 

mesh {
triangle{<-1,1,0> <1,1,0> <-1,-1,0>}
triangle{<-1,-1,0> <1,1,0> <1,-1,0>}
texture {pigment {image_map{png "image.png"
once map_type 0}} }
finish{ambient .6 roughness .01}  }

	It is finite and scalable to the size of the image and so forth. And if
you make a finer mesh and apply a sine wave you can make it wave like a
flag in the wind.


Post a reply to this message

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