POV-Ray : Newsgroups : povray.newusers : color Clear non existant? Server Time
27 Dec 2024 00:07:24 EST (-0500)
  color Clear non existant? (Message 1 to 4 of 4)  
From: marabou
Subject: color Clear non existant?
Date: 8 Nov 2006 18:32:02
Message: <pan.2006.11.08.23.31.59.53214@available.yet>
hello, 
as I tried out wood textures I got following error:
>>>>>>>>>>
<snipped>povray-3.6/include/woodmaps.inc  Line: 470
File Context (5 lines):
#declare M_Wood19B =
color_map {
    [0.00 0.30 color rgb <0.35, 0.175, 0.0875>
               color rgb <1.00, 0.500, 0.2500> ]
    [0.30 1.00 color Clear
Parse Error: Expected 'color', undeclared identifier 'Clear' found instead
<<<<<<<<<<
my includes were:
  1 #include "textures.inc"
  2 #include "woods.inc"
  3 #include "colors.inc"

Did i something wrong?


Post a reply to this message

From: Alain
Subject: Re: color Clear non existant?
Date: 8 Nov 2006 20:31:22
Message: <455284ea$1@news.povray.org>
marabou nous apporta ses lumieres en ce 08/11/2006 18:31:
> hello, 
> as I tried out wood textures I got following error:
> <snipped>povray-3.6/include/woodmaps.inc  Line: 470
> File Context (5 lines):
> #declare M_Wood19B =
> color_map {
>     [0.00 0.30 color rgb <0.35, 0.175, 0.0875>
>                color rgb <1.00, 0.500, 0.2500> ]
>     [0.30 1.00 color Clear
> Parse Error: Expected 'color', undeclared identifier 'Clear' found instead
> <<<<<<<<<<
> my includes were:
>   1 #include "textures.inc"
>   2 #include "woods.inc"
>   3 #include "colors.inc"

> Did i something wrong?

Clear is rgbf 1 and is defined in colors.inc, so you should be OK.
Check if you din't undeclare it by mistake.
Check if you actualy include colors.inc before you use it.

-- 
Alain
-------------------------------------------------
My toes were playing the piano under the blankets.
They made so much noise that I woke up singing.


Post a reply to this message

From: Tek
Subject: Re: color Clear non existant?
Date: 8 Nov 2006 23:43:42
Message: <4552b1fe@news.povray.org>
Looks to me like you need to include colors.inc *before* woods.inc, maybe?
I don't use those headers so I'm not sure if they have interdependencies 
like that.

-- 
Tek
http://evilsuperbrain.com

"marabou" <not### [at] availableyet> wrote in message 
news:pan### [at] availableyet...
> hello,
> as I tried out wood textures I got following error:
>>>>>>>>>>>
> <snipped>povray-3.6/include/woodmaps.inc  Line: 470
> File Context (5 lines):
> #declare M_Wood19B =
> color_map {
>    [0.00 0.30 color rgb <0.35, 0.175, 0.0875>
>               color rgb <1.00, 0.500, 0.2500> ]
>    [0.30 1.00 color Clear
> Parse Error: Expected 'color', undeclared identifier 'Clear' found instead
> <<<<<<<<<<
> my includes were:
>  1 #include "textures.inc"
>  2 #include "woods.inc"
>  3 #include "colors.inc"
>
> Did i something wrong?
>


Post a reply to this message

From: marabou
Subject: Re: color Clear non existant?
Date: 9 Nov 2006 03:14:07
Message: <pan.2006.11.09.08.14.00.789191@available.yet>
On Thu, 09 Nov 2006 04:43:41 +0000 Tek wrote:

> Looks to me like you need to include colors.inc *before* woods.inc, maybe?
> I don't use those headers so I'm not sure if they have interdependencies 
> like that.

Indeed, you have to do it.
Thanks Alain, thanks Tek.


Post a reply to this message

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