POV-Ray : Newsgroups : povray.newusers : bicubic patch editor : Re: bicubic patch editor Server Time
26 Apr 2025 11:53:37 EDT (-0400)
  Re: bicubic patch editor  
From: gulino
Date: 1 Apr 2025 14:45:00
Message: <web.67ec336341fe044264ac0beab67afd2@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "gulino" <nomail@nomail> wrote:
>
> > but I have a error in
> > Grass (x, y,z)*GrassHeight}
> >
> > "Expected '.', * found instead"
>
> Yeah - inbuilt pigment functions return a full rgbft vector, so you have to
> specify which vector component you want to use in the crippled user-defined
> scalar function you're writing.
>
> So, just do:
> Grass (x, y,z).red*GrassHeight
>
> - BW


#declare PlainAndGrass = function {Plain (x, y, z, 2.3, 7.0, 5.0, -2, 1, 3.0) +
Grass (x, y,z).red*GrassHeight}

"Invalid number of parameters 9 supplied, 3 required"


Post a reply to this message

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