 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I don't remember seeing this warning before (I have been using povray for
several years):
warning: Suspicious expression after rgb.
Can you guess what causes it?-)
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
I usually get this when I have rgb <1.1,1> by mistake, or four components of
the vector instead of 3
Josh
Warp wrote:
> I don't remember seeing this warning before (I have been using povray for
> several years):
>
> warning: Suspicious expression after rgb.
>
> Can you guess what causes it?-)
>
> --
> char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
> main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
> c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritone com
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp <war### [at] tag povray org> wrote in message news:3a5efad1@news.povray.org...
> I don't remember seeing this warning before (I have been using povray
for
> several years):
>
> warning: Suspicious expression after rgb.
>
> Can you guess what causes it?-)
>
I get that frequently as I tend to mix up commas and dots when
typing fast. Any of the below causes the warning.
rgb <1.2.2,0,0>
rgb <1,1,1,1>
rgb <0..1,1,1>
Gail
********************************************************************
* gsh### [at] monotix co za * System.dat not found. *
* http://www.rucus.ru.ac.za/~gail/ * Reformat hard drive Y)es O)k *
********************************************************************
* If at first you don't succeed, call it version 1.0 *
********************************************************************
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Gail Shaw <gsh### [at] monotix co za> wrote:
: I get that frequently
I wonder why this is the first time I see it.
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
>
> I don't remember seeing this warning before (I have been using povray for
> several years):
>
> warning: Suspicious expression after rgb.
>
> Can you guess what causes it?-)
>
I get it sometimes, when i write a slightly more complicated float
expression for a 'color rgb'. Since it's only a warning i rarely see it
:-)
Christoph
--
Christoph Hormann <chr### [at] gmx de>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp <war### [at] tag povray org> wrote in message news:3a5f3526@news.povray.org...
> Gail Shaw <gsh### [at] monotix co za> wrote:
> : I get that frequently
>
> I wonder why this is the first time I see it.
>
<grin> You type better than I do.
Gail
********************************************************************
* gsh### [at] monotix co za * System.dat not found. *
* http://www.rucus.ru.ac.za/~gail/ * Reformat hard drive Y)es O)k *
********************************************************************
* If at first you don't succeed, call it version 1.0 *
********************************************************************
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Gail Shaw <gsh### [at] monotix co za> wrote:
: <grin> You type better than I do.
And it even wasn't a mistyping. IIRC it was something like this:
#declare Color = rgb <1,.5,0>;
...
color_map
{ [0 rgb Color]
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |