POV-Ray : Newsgroups : povray.general : Bad operands : Bad operands Server Time
29 Jul 2024 22:26:58 EDT (-0400)
  Bad operands  
From: Thomas de Groot
Date: 20 May 2010 03:11:36
Message: <4bf4e0a8$1@news.povray.org>
I do not understand this. The following macro

#macro GammaColort(Color,Gamma)
  rgbt <pow(Color.red,Gamma), pow(Color.green,Gamma), pow(Color.blue,Gamma), 
Color.transmit>
#end

gives a parse error: "Bad operands for period operators"

while the following macros work just fine:

#macro GammaColorf(Color,Gamma)
  rgbf <pow(Color.red,Gamma), pow(Color.green,Gamma), pow(Color.blue,Gamma), 
Color.filter>
#end

#macro GammaColorft(Color,Gamma)
  rgbft <pow(Color.red,Gamma), pow(Color.green,Gamma), 
pow(Color.blue,Gamma), Color.filter, Color.transmit>
#end

Can somebody tell me what I do wrong?


Thomas


Post a reply to this message

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