POV-Ray : Newsgroups : povray.binaries.images : city buildings-- WIP 9_29_2020 : Re: city buildings-- WIP 9_29_2020 Server Time
20 May 2024 12:45:58 EDT (-0400)
  Re: city buildings-- WIP 9_29_2020  
From: Bald Eagle
Date: 4 Oct 2020 09:55:01
Message: <web.5f79d36b32341a551f9dae300@news.povray.org>
You're either going to use memory, or spend a lot of time reading in the image
data during parse time.

If you want to save on memory usage, you could likely assign the image_map file
to the same identifier name every time, and that might keep the memory usage
down.

With regard to using the png + filename in an array, you no longer need to
specify the file type - POV-Ray will automagically detect that.

http://news.povray.org/povray.advanced-users/message/%3C5ba3b5f9%241%40news.povray.org%3E/#%3C5ba3b5f9%241%40news.povra
y.org%3E

http://news.povray.org/povray.animations/thread/%3Cweb.5c037ac5c84714c0730e3a270%40news.povray.org%3E/

You can also assign full pigment statements to array elements, thus ensuring
that they have the complete and correct syntax, and then reference those
fully-formed image_maps by name/index.

#declare _Array [1] = pigment {image_map {"Filename.png"} }

#macro macroName ()
     blah
     blah
     pigment {_Array [1]}
     blargety
     blech
#end


Post a reply to this message

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