POV-Ray : Newsgroups : povray.general : Image_map reuse? Server Time
18 Nov 2024 11:19:25 EST (-0500)
  Image_map reuse? (Message 1 to 3 of 3)  
From: Hugo
Subject: Image_map reuse?
Date: 24 Aug 2002 15:31:09
Message: <3d67defd$1@news.povray.org>
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?

Regards,
Hugo


Post a reply to this message

From: Christopher James Huff
Subject: Re: Image_map reuse?
Date: 25 Aug 2002 19:21:01
Message: <chrishuff-E4B17A.19210525082002@netplex.aussie.org>
In article <3d67defd$1@news.povray.org>, "Hugo" <hua### [at] post3teledk> 
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] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Hugo
Subject: Re: Image_map reuse?
Date: 26 Aug 2002 04:09:10
Message: <3d69e226$1@news.povray.org>
Thanks! Yes of course, a warp!  Although it's slower to render....

Thanks,
Hugo


Post a reply to this message

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