|
![](/i/fill.gif) |
How's that for a discovery :
"^" is an invalid operator in straight povray ("object or directive not
found but ^ found instead)
but... it works in the function{} feature of the Superpatch !!!
So it solves the problem for pow (and also the riddle of why a common
function like this was not implemented ; I suspect that R. Suzuki actually
implemented ^ support before the official povray had the pow function).
Many thanks TonyB, you saved the day (mine at least)
Gilles
TonyB wrote:
> Ever hear of x^0.5?
>
> Gilles Tran wrote:
>
> > This is something I've noticed a while ago but didn't care about until
> > recently : some math functions are not recognized in the isosurface
> > function declaration : pow, log, atan2, int, ceil, floor.
> > function y + sqrt(x) works
> > but
> > function y + pow(x,0.5) returns an error ("float factor expected but
> > pow found instead")
> >
> > Any clue about this behavior ? Or am I missing something obvious ? It
> > looks like the part of the patch that parses the function declaration
> > doesn't know about these particular float functions.
> >
> > Many thanks
> >
> > Gilles
>
> --
> Anthony L. Bennett
> http://welcome.to/TonyB
>
> Graphics rendered
> by the Dreamachine.
Post a reply to this message
|
![](/i/fill.gif) |