POV-Ray : Newsgroups : povray.advanced-users : Is this a bug? : Re: Is this a bug? Server Time
2 Nov 2024 13:18:28 EDT (-0400)
  Re: Is this a bug?  
From: PoD
Date: 3 Sep 1999 14:45:42
Message: <37D01826.2A7BE477@merlin.net.au>
Nieminen Juha wrote:
> 
>   Someone discovered this bug in povray.newusers. I'm confirming that it
> really is a bug before posting a bug report.
> 
>   When rendering the following scene povray issues the warning "No pigment
> type given" although there are no objects without pigment in the scene.
>   If the 'material' statement is removed and 'Test' is used as 'texture'
> instead, the warning disappears.
> 
> camera { location -z*5 look_at 0 }
> light_source { <100,100,-100> 1 }
> 
> #declare Test=
>   material
>   { texture { pigment { rgb x } }
>   }
> 
> union
> { sphere { -x,2 material { Test } }
>   sphere { x,2 material { Test } }
> }
> 
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/

It does seem to be a bug.  The warning goes away if any type of pigment
is given to the union outside of the objects.

It works with material{Test} or with pigment{whatever}. 

Cheers, PoD.


Post a reply to this message

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