POV-Ray : Newsgroups : povray.beta-test : Syntax error message? : Syntax error message? Server Time
5 May 2024 12:50:19 EDT (-0400)
  Syntax error message?  
From: Thomas de Groot
Date: 7 Dec 2012 03:47:24
Message: <50c1ad1c$1@news.povray.org>
In an external .inc file I have the following line:

#declare srgbLightTanned1 = srgb <226, 167, 135>/255;

In my material definition I have written, using Poseray's macros:

#declare SkinColor = srgbLightTanned2;

#declare PP_Head = pigment {pigment_multiply(p_map7,pigment {srgb 
SkinColor})}

...which should be written without the /srgb/ code to be correct:

#declare PP_Head = pigment {pigment_multiply(p_map7,pigment {SkinColor})}

Both lines render without a glitch but give very different render results.

Should there not be a warning message telling about the extra and 
unwanted srgb code?

Thomas


Post a reply to this message

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