POV-Ray : Newsgroups : povray.binaries.images : Oriental Tileworks - revisited! : Re: Oriental Tileworks - revisited! Server Time
14 Aug 2024 09:20:54 EDT (-0400)
  Re: Oriental Tileworks - revisited!  
From: Christopher James Huff
Date: 7 Nov 2002 21:10:37
Message: <chrishuff-019B0E.21103707112002@netplex.aussie.org>
In article <3DCAE836.3EF41D7B@tiscalinet.de>,


> I then wrote a small C++ programm to read in TGA bitmaps containing the
> calligraphic patterns of Isma'il's works (by the
> way, shouldn't there be a way to do this directly from PoV-Ray?) 

There is. Use a pigment function with the image as an image_map. A call 
of the function then returns the color of the image at that point. This 
has been used in the past to do mosaiacs and other odd filters of 
images, you might want to look back in this group for examples.

There isn't a way to automatically read in the resolution of the image, 
but that doesn't always matter anyway. This way, you can also avoid 
having to adjust the size of the input image to have a direct 
pixel-to-tile correspondence.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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