POV-Ray : Newsgroups : povray.general : File as Texture... : Re: File as Texture... Server Time
10 Aug 2024 13:19:51 EDT (-0400)
  Re: File as Texture...  
From: Ken
Date: 23 Dec 1999 11:26:13
Message: <38624E32.AEF63014@pacbell.net>
"Martin T. Thoma" wrote:
> 
> File as Texture...
> 
> Hello !
> 
> Is it possible, to use a picture-file (.tif, .jpg, .gif, .bmp...) as a
> texture ? How ?

You may use an image inside a pigment statement using the image_map
command. Look in the docs for specific information on using an image
map in your scene.

 The basic syntax is -

#declare My_Tex =

texture {
 pigment  {
  image_map { tga "your_image.tga" }
 }
}


There is a great online tutorial on using image maps here -
http://members.xoom.com/yang4yang/pov/imap1.html

-- 
Wishing you Seasons Greetings, A Merry Christmas, Happy New Millennium !
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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