POV-Ray : Newsgroups : povray.beta-test : Parsing issue. Density and blend_mode, blend_gamma. : Parsing issue. Density and blend_mode, blend_gamma. Server Time
18 Apr 2024 23:31:17 EDT (-0400)
  Parsing issue. Density and blend_mode, blend_gamma.  
From: William F Pokorny
Date: 9 Feb 2021 08:04:59
Message: <6022887b$1@news.povray.org>
Documenting apparent bug with parsing and new to v3.8 blend_mode and 
blend_gamma options.

In playing some with a media scene Bald Eagle posted, had the thought to 
try the new to v3.8 blend_mode and blend_gamma options for his color map 
because I'd never used the features with media.

This fails to parse:

density {
     gradient x
     color_map {
         blend_mode 2 blend_gama 2.5
         [0.0 rgb 0.0]
         [1.0 rgb 1.0]
     } // end color_map
} // end density

while this works:

#declare CM = color_map {
      blend_mode 0 blend_gamma 2.5
      [0.0 rgb 0.0]
      [1.0 rgb 1.0]
} // end color_map

density {
     gradient x
     color_map { CM }
} // end density

Bill P.


Post a reply to this message

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