|
![](/i/fill.gif) |
In article <3d67defd$1@news.povray.org>, "Hugo" <hua### [at] post3 tele dk>
wrote:
> It seems ankward that I have to load an image_map twice into memory if I
> want to use 2 kinds of map_types (spherical, cylindrical etc.) with the same
> image... Is there are way around that? Maybe a function?
#declare basePig = pigment {image_map {...}}
#declare sphPig = pigment {basePig warp {spherical}}
#declare cylPig = pigment {basePig warp {cylindrical}}
#declare torPig = pigment {basePig warp {toroidal}}
I'm pretty certain POV copies image data by reference, similarly to how
meshes handle geometry data. Even if it doesn't, this will avoid reading
and decoding the file for every use and makes it easier to make
changes...you only need to change the image name in one place.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |