POV-Ray : Newsgroups : povray.general : North? Server Time
31 Jul 2024 10:22:54 EDT (-0400)
  North? (Message 1 to 6 of 6)  
From: JLH
Subject: North?
Date: 18 Jun 2007 07:25:02
Message: <web.46766aac167e4e2a9d0a51070@news.povray.org>
Here are two questions that are connected:
1. In the POVRAY coordinate system at least one function is sensitive to the
direction "North" and that is "sunpos". Is North in the z-direction by
default?
2. If the answer to the first question is "yes", is there any global
rotation or setting possible to bring the north direction in say a
townscape to align with the z-axis?

Any help on this topic would be greatly appreciated. JLH


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: North?
Date: 18 Jun 2007 07:38:20
Message: <46766eac$1@news.povray.org>
JLH wrote:
> Here are two questions that are connected:
> 1. In the POVRAY coordinate system at least one function is sensitive to the
> direction "North" and that is "sunpos". Is North in the z-direction by
> default?

There is no such thing as "North" in POV-Ray. What are you talking about?

	Thorsten


Post a reply to this message

From: JLH
Subject: Re: North?
Date: 18 Jun 2007 09:10:01
Message: <web.467683d5349363489d0a51070@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> JLH wrote:
> > Here are two questions that are connected:
> > 1. In the POVRAY coordinate system at least one function is sensitive to the
> > direction "North" and that is "sunpos". Is North in the z-direction by
> > default?
>
> There is no such thing as "North" in POV-Ray. What are you talking about?
>
>  Thorsten

"sunpos" requires an input of h:m:s, lat long, to provide the correct
direction of the sun's light. This requires an implicit assumption of the
direction of the N-S meridian. I was wanting to find out if this was the
z-axis. Since then I have found in the help files that the N-S line is
indeed the z axis. Now I just wonder at the answer to the second
question-can one do global rotations of whole scenes? I suspect the answer
is no. JLH


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: North?
Date: 18 Jun 2007 09:25:13
Message: <467687b9$1@news.povray.org>
JLH wrote:
> Thorsten Froehlich <tho### [at] trfde> wrote:
>> JLH wrote:
>>> Here are two questions that are connected:
>>> 1. In the POVRAY coordinate system at least one function is sensitive to the
>>> direction "North" and that is "sunpos". Is North in the z-direction by
>>> default?
>> There is no such thing as "North" in POV-Ray. What are you talking about?
>>
>>  Thorsten
> 
> "sunpos" requires an input of h:m:s, lat long, to provide the correct
> direction of the sun's light. This requires an implicit assumption of the
> direction of the N-S meridian. I was wanting to find out if this was the
> z-axis. Since then I have found in the help files that the N-S line is
> indeed the z axis. Now I just wonder at the answer to the second
> question-can one do global rotations of whole scenes? I suspect the answer
> is no. JLH

Well, the "sunpos" you seem to be talking about is nothing more than a
macro, so you can (a) see how it is implemented by checking "sunpos.inc" and
(b) it only returns a location vector. Consequently, there is little use to
rotate the whole scene to match to a light source which is *also* part of
that scene (nothing would change).

In short, what you want to do is translate the light source, not the scene.
As you can have as many consecutive translations as you want, this is
trivial to do.

	Thorsten


Post a reply to this message

From: Alain
Subject: Re: North?
Date: 18 Jun 2007 17:30:59
Message: <4676f993$1@news.povray.org>
JLH nous apporta ses lumieres en ce 2007/06/18 09:08:
  Thorsten
> 
> "sunpos" requires an input of h:m:s, lat long, to provide the correct
> direction of the sun's light. This requires an implicit assumption of the
> direction of the N-S meridian. I was wanting to find out if this was the
> z-axis. Since then I have found in the help files that the N-S line is
> indeed the z axis. Now I just wonder at the answer to the second
> question-can one do global rotations of whole scenes? I suspect the answer
> is no. JLH
> 
> 
You can do a global rotation of a whole scene. Here is how you do it:
Option 1: Wrap your whole scene, optionaly exepting the camera, in a global 
union. Rotate that union. If you want, you can leave out some or all of your 
light(s).
Option 2: Rotate the camera

-- 
Alain
-------------------------------------------------
   My wife is such a bad cook, in my house we pray after the meal.
   	Rodney Dangerfield


Post a reply to this message

From: JLH
Subject: Re: North?
Date: 18 Jun 2007 21:10:01
Message: <web.46772c0c349363489d0a51070@news.povray.org>
Alain <ele### [at] netscapenet> wrote:
> JLH nous apporta ses lumieres en ce 2007/06/18 09:08:
>   Thorsten
> >
> > "sunpos" requires an input of h:m:s, lat long, to provide the correct
> > direction of the sun's light. This requires an implicit assumption of the
> > direction of the N-S meridian. I was wanting to find out if this was the
> > z-axis. Since then I have found in the help files that the N-S line is
> > indeed the z axis. Now I just wonder at the answer to the second
> > question-can one do global rotations of whole scenes? I suspect the answer
> > is no. JLH
> >
> >
> You can do a global rotation of a whole scene. Here is how you do it:
> Option 1: Wrap your whole scene, optionaly exepting the camera, in a global
> union. Rotate that union. If you want, you can leave out some or all of your
> light(s).
> Option 2: Rotate the camera
>
> --
> Alain
> -------------------------------------------------
>    My wife is such a bad cook, in my house we pray after the meal.
>     Rodney Dangerfield

Alain: Thank you for your reply. That is what I wanted. The reason for the
request is that architects and planners often use a "conventional" north in
their drawings so that the coordinates are simplest (i.e. North is taken
parallel to some street when in reality it is some angle away from north).
All is irrelevant until you are interested in the actual time resolution of
sun shadows, in which case the whole scene must be rotated wrt the sun to be
geographically correct. This is the situation I have at the moment. So there
is at least one operation in POVRAY that is
North dependent. JLH


Post a reply to this message

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