POV-Ray : Newsgroups : povray.general : SunPos.inc Server Time
29 Nov 2024 05:24:00 EST (-0500)
  SunPos.inc (Message 1 to 4 of 4)  
From: Russell Towle
Subject: SunPos.inc
Date: 12 Apr 2006 11:55:00
Message: <web.443d225882d7f16039b2bf190@news.povray.org>
I have been testing POV 3.6.1's sunpos.inc #include file, with some virtual
landscapes I am familiar with, based upon USGS DEMs. I am obtaining
incorrect results; the sun does not rise or set when it should.

I have set year, month, day, hour, minute, timezone offset, longitude and
latitude correctly. I am rendering scenes I have rendered hundreds of times
before with accurate sun positions. Now it's all wrong.

Hence sunpos.inc must be broken. Anybody else with sunpos.inc problems?

I used to use a very similar file named "sun.inc,' which worked exactly
right and took the same paramemters in the same order and format, as
sunpos.inc. However, under POV 3.6.1 this sun.inc file does not run, but
gives an error message in parsing, saying that it does not recognixe "vstr"
in the line

#macro vstr (vec)

This makes me think that #macro syntax must have changed between version 3.1
and 3.6; but I can't see how.

Help?

Thanks


Post a reply to this message

From: Rune
Subject: Re: SunPos.inc
Date: 12 Apr 2006 11:59:19
Message: <443d23d7$1@news.povray.org>
"Russell Towle" <rto### [at] inreachcom> wrote:
>However, under POV 3.6.1 this sun.inc file does not run, but
> gives an error message in parsing, saying that it does not recognixe 
> "vstr"
> in the line
>
> #macro vstr (vec)
>
> This makes me think that #macro syntax must have changed between version 
> 3.1
> and 3.6; but I can't see how.

No, but in POV-Ray 3.6 vstr is a reserved keyword. Renaming vstr to VStr (or 
similar) everywhere might fix the problem.

Rune
-- 
http://runevision.com


Post a reply to this message

From: Russell Towle
Subject: Re: SunPos.inc
Date: 12 Apr 2006 14:10:00
Message: <web.443d42131dddd71ee6a95f310@news.povray.org>
"Rune" <new### [at] runevisioncom> wrote:
> "Russell Towle" <rto### [at] inreachcom> wrote:
> >However, under POV 3.6.1 this sun.inc file does not run, but
> > gives an error message in parsing, saying that it does not recognixe
> > "vstr"
> > in the line
> >
> > #macro vstr (vec)
> >
> > This makes me think that #macro syntax must have changed between version
> > 3.1
> > and 3.6; but I can't see how.
>
> No, but in POV-Ray 3.6 vstr is a reserved keyword. Renaming vstr to VStr (or
> similar) everywhere might fix the problem.

Ah ha! Well I will try that, or I should try that, but, ...

I got the standard #include sunpos.inc to work. I was mistakenly writing
"-8" for my timezone when this particular algorithm wants -8*15 (degrees).
Once I fixed that, my suns behaved normally.

Thanks Rune!

RT


Post a reply to this message

From: Warp
Subject: Re: SunPos.inc
Date: 12 Apr 2006 16:04:53
Message: <443d5d65@news.povray.org>
Russell Towle <rto### [at] inreachcom> wrote:
> I got the standard #include sunpos.inc to work. I was mistakenly writing
> "-8" for my timezone when this particular algorithm wants -8*15 (degrees).
> Once I fixed that, my suns behaved normally.

  Thus we once again see that you shouldn't be too hasty in deciding that
it's the program/library/whatever that is broken and not your code...

-- 
                                                          - Warp


Post a reply to this message

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