POV-Ray : Newsgroups : povray.general : no_image behaviour : Re: no_image behaviour Server Time
5 May 2024 07:17:45 EDT (-0400)
  Re: no_image behaviour  
From: Alain
Date: 19 Jun 2018 15:04:59
Message: <5b2953db@news.povray.org>
Le 18-06-19 à 06:36, Bald Eagle a écrit :
> "jr" <cre### [at] gmailcom> wrote:
> 
>> you mean like WF Pokorny suggests in
>> http://news.povray.org/5b279884%241%40news.povray.org?
> 
> Yeah - I just got around to reading through his code before to see that that's
> what he was actually doing.  I had a hard time implementing it from scratch, as
> I'm still struggling with the context and syntax for using patterns in
> functions.
> 
> POV-Ray didn't like this:
> density {
>       function {pattern {
>            object {Intersector
>                 color_map {
>                      [0.0 rgb 0]
>                      [0.5 rgb 0]
>                      [0.5 rgb 1]
>                      [1.0 rgb 1]
>                  }
>             }}
>       }
> }
> 
Obviously, it don't like that. The object pattern don't support 
color_map, but demand 2 colours.

function{pattern{object{Object Colour1, Colour2}}}


Post a reply to this message

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