Sunposition Calculator

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Sunposition Calculator // Interactive Artwork

1  |  

Post by Wigand // Feb 22, 2007, 10:00am

Wigand
Total Posts: 462
pic
For architects, for gardeners, police and astronomers.

Here you get the


Sunposition Calculator.


You put in your local- position (GPS)

and the right time and you get the

position of the sun above the horizon.


I would like to use an infinite light as the sun,

but the light don't have axes which I could move to

the center of the observer.

If someone has an idea to calculate the rotation

of lights for this purpose, please let me know

Post by GraySho // Feb 22, 2007, 4:03pm

GraySho
Total Posts: 695
pic
Excellent stuff. Maybe caligari could include all those user made bricks in a future release? If the authors don't mind of course.

Post by trueBlue // Feb 22, 2007, 4:10pm

trueBlue
Total Posts: 1761
pic
How about if you create a Cube and 3D Encapsulate it with an Infinite light?
Then you use the cube's axis for the Infinte light. You could of course make both
invisible too if you wish.

Post by Wigand // Feb 25, 2007, 5:53am

Wigand
Total Posts: 462
pic
I updated the LE-Script object, because there was a

problem with the angle conversion to TS. Now the angle of

the azimut goes from 0 to 360deg.


The calculation is correct, but I still need to convert the angles into

TS conform angles. Is there anyone who has an idea?


Now I am really confused :confused: by the way TS handles angles.

There seemes to be a difference between Modeler and Player.

Modeler goes from 0 to 180 and -180 to 0

Player goes from 0 to 360deg.

Post by Wigand // Feb 25, 2007, 11:11am

Wigand
Total Posts: 462
pic
So, I hope my work is finished :)


I put in a converter to convert Azimut and Height into

cartesian coordinates. Now you can justify the distance of the sun and the lights by changing their radius variable. Now you can see the sun go around

the center.

Please, remember not to use your local time for input, but greenwich mean time, so you have to know the difference to your timezone.


If you have still problems, please let me know.


Either you have only problems and you are to shy to confess, or

everything is alright for you, but you didn't found all the bugs in my work because you don't test it. :rolleyes:

Post by trueBlue // Feb 25, 2007, 4:41pm

trueBlue
Total Posts: 1761
pic
Very cool there Wigand. I could see this being used as a scene for Earth, Moon, and Sun where as when loaded and activated sun, moon, time and date would all be in there proper location and updating in real time. I do see the angle problem and I beleive using Dele's Super Look At script would fix this.

Post by Wigand // Feb 26, 2007, 11:27am

Wigand
Total Posts: 462
pic
So, I hope my work is finished :)



:mad:


No, it is not finished. Unfortunately I tested only some months.

Now I found there are still problems with the Azimut.

So I have to work harder.

Post by Wigand // Feb 27, 2007, 9:30am

Wigand
Total Posts: 462
pic
Please test the new update of the sunposition -object.

I only upload the object. I think it's not to difficult for you

to exchange it with the old one. :)


Please test ist with your position and any time. The position you can

get from googlemaps, your navi (GPS) or maps.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn