|
|
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
|
|