POV-Ray : Newsgroups : povray.advanced-users : Blend_Map problem : Re: Blend_Map problem Server Time
30 Jul 2024 14:19:49 EDT (-0400)
  Re: Blend_Map problem  
From: Ron Parker
Date: 17 May 1999 11:10:11
Message: <37402343.0@news.povray.org>
On Mon, 17 May 1999 12:49:24 GMT, Jeff Lee wrote:
>Hi, all,
>
>I'm trying to create a fairly complex texture, and past a certain point,
>POV-Ray complains with "error: Blend_Map too long".  How long can a
>"Blend_Map" be, and are there any ways around the limitations?  

frame.h sets MAX_BLEND_MAP_ENTRIES to 256.  You can probably increase
it and recompile POV-Ray.  If you want an ugly workaround without 
recompiling, you could probably use an extra layer of mapping like so:

sphere {0, 1 
  texture {
    pigment {
      gradient y pigment_map {
        [.5 gradient y pigment_map {
          [0 color red 1]
          [.25 color rgb <1,1,0>]
          [.5 color green 1] 
          }]
        [.5 gradient y pigment_map {
          [.5 color green 1]
          [.75 color rgb <0,1,1>]
          [1 color blue 1]
          }]  
        }
      }
    finish {ambient .3}
    }
  }


Post a reply to this message

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