|
|
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
|
|