POV-Ray : Newsgroups : povray.beta-test : error on Blend_Map size : error on Blend_Map size Server Time
4 Jul 2024 13:12:03 EDT (-0400)
  error on Blend_Map size  
From: CShake
Date: 13 Dec 2009 21:40:35
Message: <4b25a5a3$1@news.povray.org>
I wrote a simple script to convert fractint color maps to povray 
color_maps so I could use ApoMap to make nice fractal colors for pov, 
but I ran into
"Parse Error: Blend_Map too long."
The map has entries from 0/255 up to 255/255 (inclusive). I looked up 
the documentation which says that color_maps can have from 2 to 256 
entries, and this is exactly 256 entries.
I'm posting this in beta-test because I assume that the documentation is 
correct for v3.6, and that a previous version can handle 256 entries.

I won't include the entire map here for space reasons, but the format of 
the inc file is as follows:
-----------------
/* POV-Ray Color map converted from FractInt format */
#declare colormap_random1 =
color_map{
	[0/255 rgb <166,165,164>/255]
	[1/255 rgb <160,147,160>/255]
...
	[252/255 rgb <45,67,45>/255]
	[253/255 rgb <53,83,51>/255]
	[254/255 rgb <61,99,57>/255]
	[255/255 rgb <69,115,63>/255]
}
-----------------

The file is terminated with a newline, as is standard for text files.
Considering that povray's parser is considerably slower than php or c++ 
I will probably pre-calculate the float values for each of the fractions 
when I finish the script, this was just for testing purposes.


Post a reply to this message

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