POV-Ray : Newsgroups : povray.beta-test : Red sky in the morning - RC3 sky_sphere bug Server Time
1 Nov 2024 13:22:03 EDT (-0400)
  Red sky in the morning - RC3 sky_sphere bug (Message 1 to 7 of 7)  
From: Tom A 
Subject: Red sky in the morning - RC3 sky_sphere bug
Date: 1 May 2002 14:58:02
Message: <3CD03ABA.99EB4767@my-deja.com>
Beta RC3

Machines
Win NT on 450mh w/ aprox 400 MB of memory

Re-rendering a picture that worked fine on Beta 16, the sky was all red
instead of blue with white clouds.
Cutting out everything except what seems to be the problem the code is
this:

#local w=rgb.7;
camera{location<0,2,-5>}
light_source{y*99 1}
plane{y,0 pigment{ w*y }} // change the 0 to some other value 1, -1, and
the sky is OK
#local V=w*z;

sky_sphere
{ pigment
  { granite 
    color_map
    { [.4 w*z]  // replace w*z with variable V and the sky is OK
      [1 w+w]
    }
  }
}
#warning concat("<",str(w.x,5,3),", ",str(w.y,5,3),",
",str(w.z,5,3),">\n")
#warning concat("<",str(V.x,5,3),", ",str(V.y,5,3),",
",str(V.z,5,3),">\n")

The warnings show the values for w and V are correct.

If I change the offset parameter of the plane (zero), the sky works
fine.  Change it to 
  plane{y, -0 pigment{ w*y }}
and it works fine.

If I use a variable set to w*z (eg. V)  instead of having the
multiplication in line, then the sky works fine.

Thank you.

-- 
Tom A.
There's nothing like cooking and eating outside, unless you like
comfort. - Henny Youngman
Deja mail is gone.  Look for me at raugost at yahoo . com


Post a reply to this message

From: bob h
Subject: Re: Red sky in the morning - RC3 sky_sphere bug
Date: 1 May 2002 16:06:12
Message: <3cd04ab4@news.povray.org>
Confirmed, using RC3 (icl) on WinXP P3 800 with 512MB.

Note that ground fog will also turn the sky red like this if fog_alt is 0.
Seems something goes wrong when 0, or the equivalent to zero, is used. Your
example shows the plane primitive to be a factor. How one declaration works
right and the other does not sure is peculiar. Just a personal observation.
It also seems to be related to multiplication, as you said.

bob h


Post a reply to this message

From: Steve
Subject: Re: Red sky in the morning - RC3 sky_sphere bug
Date: 1 May 2002 17:51:30
Message: <slrnad0omp.pat.steve@zeropps.org.uk>
The problem is also reproducable on Win95, but the problem does not 
occur in the Linux version. 

-- 
#local i=.1;#local I=(i/i)/i;#local l=(i+i)/i;#local ll=(I/i)/l;box{<-ll,
-((I/I)+l),-ll><ll,-l,ll>pigment{checker scale l}finish{ambient((I/l)/I)+
(l/I)}}sphere{<i-i,l-l,(I/l)>l/l pigment{rgb((I/l)/I)}finish{reflection((
I/l)/I)-(l/I)specular(I/l)/I}}light_source{<I-l,I+I,(I-l)/l>l/l} // Steve


Post a reply to this message

From: Alf Peake
Subject: Re: Red sky in the morning - RC3 sky_sphere bug
Date: 2 May 2002 11:13:45
Message: <3cd157a9@news.povray.org>
Sky is OK with me, blue and white with green plane in all cases.
Warnings are <0.700,0.700,0.700> and <0.000,0.000,0.000>.

version 3.5.beta.RC3.msvc.win32. Win98SE, Celeron 500, 160MB.

Alf


Post a reply to this message

From: Ari-Matti Leppanen
Subject: Re: Red sky in the morning - RC3 sky_sphere bug
Date: 2 May 2002 12:09:12
Message: <3cd164a8$1@news.povray.org>
"Tom A." <tar### [at] my-dejacom> wrote in message
news:3CD03ABA.99EB4767@my-deja.com...

: If I use a variable set to w*z (eg. V)  instead of having the
: multiplication in line, then the sky works fine.

Also changing w*z to (w*z) makes the sky work ok.

Rc3 WinXp


Ari-Matti


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Red sky in the morning - RC3 sky_sphere bug
Date: 2 May 2002 13:19:13
Message: <3cd17511@news.povray.org>
In article <3CD03ABA.99EB4767@my-deja.com> , "Tom A." <tar### [at] my-dejacom>
wrote:

>     { [.4 w*z]  // replace w*z with variable V and the sky is OK

You do realize that you are multiplying a color with a vector, do you?

    Thorsten


Post a reply to this message

From: Tom A 
Subject: Re: Red sky in the morning - RC3 sky_sphere bug
Date: 3 May 2002 11:50:56
Message: <3CD2B1E0.F66E656E@my-deja.com>
Thorsten Froehlich wrote:
> 
> In article <3CD03ABA.99EB4767@my-deja.com> , "Tom A." <tar### [at] my-dejacom>
> wrote:
> 
> >     { [.4 w*z]  // replace w*z with variable V and the sky is OK
> 
> You do realize that you are multiplying a color with a vector, do you?
> 
>     Thorsten

Yes I do.  It seemed to be a good way to convert a vector to a color. 
(I know if I did it z*w it would complain.  I thought it was a feature.)


-- 
Tom A.
There's nothing like cooking and eating outside, unless you like
comfort. - Henny Youngman
Deja mail is gone.  Look for me at raugost at yahoo . com


Post a reply to this message

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