POV-Ray : Newsgroups : povray.advanced-users : loading image maps Server Time
27 Dec 2024 16:56:13 EST (-0500)
  loading image maps (Message 1 to 2 of 2)  
From: uwe
Subject: loading image maps
Date: 8 Dec 2004 15:15:01
Message: <web.41b75fd257f177de683b81d0@news.povray.org>
hi all,
i wonder if i specify the same image map over and over again in the scene
description ....

e.g.
...
...
...
pigment { uv_mapping image_map {  "myfile.gif" interpolate 2 } }
...
...
...
pigment { uv_mapping image_map {  "myfile.gif" interpolate 2 } }
...
...
...
etc....

would it get loaded into memory several times or does povray detect this and
load the file only on first occurrence.

this is an important question for me since i generate the scene files
automatically from another program and i would have to change the approach
if the files were indeed loaded several times.

kind regards,
uwe


Post a reply to this message

From: Christoph Hormann
Subject: Re: loading image maps
Date: 8 Dec 2004 17:35:02
Message: <cp7vfk$h7h$1@chho.imagico.de>
uwe wrote:
> hi all,
> i wonder if i specify the same image map over and over again in the scene
> description ....
> 
> would it get loaded into memory several times 

Yes, the image file could have changed in the meantime for example with 
the use of POV-Ray's file writing functions.

To avoid this declare the pigment once and reuse it.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

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