SO I need some general understanding of temperature calculation pertaining to a sun, the distance it is from a planet and the radiant heat loss and interception by a planet and space (empty space) I have looked at various examples but even the wiki on the subject is far too in depth for me to grasp. I will give you an example.
Set display mode Desktop Width(), Desktop Height(), 32, 1
Autocam off : Backdrop On : Color Backdrop RGB(12,0,24)
Make object sphere 1,100,50,50
Make object sphere 2,500,50,50
SDist#=2000
CamDist#=240
`Rotational Cam Stat
AngA#=0
AngB#=0
AngC#=0
`Orbital Stat
SunA#=0
Do
`Sun
PX#=Newxvalue(object position x(2), SunA#,sDIST#)
PZ#=NewZvalue (Object position Z(2), SunA#, sDIST#)
`camera
cx#=Newxvalue(object position x(1),Ang#,camdist#)
cy#=Newyvalue(object position Y(1),Angb#,camdist#)
cz#= Newzvalue (Object Position z(1),angC#,camDist#)
`Rotation Camera
If mouseclick()=2
Newang#=MousemoveX()
If oldang# <> NEWANG#
If Oldang# < Newang# then Mousexx#=5
If oldang# > Newang# then Mousexx#=-5
Oldang#=MousemoveX()
ang#=Mousexx#+ang#
Angc#=MouseXX#+Angc#
else
MouseXX#=0
endif
endif
If mouseclick()=1
Newangy#=Mousemovey()
If oldangy# <> NEWANGy#
If Oldangy# < Newangy# then Mouseyy#=5
If oldangy# > Newangy# then Mouseyy#=-5
Oldangy#=Mousemovey()
Angb#=MouseYY#+AngB#
angc#=mouseYY#+ANGc#
ELSE
MOUSEYY#=0
Endif
endif
`Zoom Camera
Newmousez = MousemoveZ()
If oldmousez <> newmousez
If oldmousez < newmousez then mousezz=-25
If oldmousez > newmousez then mousezz=25
Oldmousez =Mousemovez()
camDist#=camDist#+MouseZz
else
Mousezz=0
endif
Position object 1,PX#,0,PZ#
Position camera CX#,CY#,CZ#
Point camera Object position X(1),Object position Y(1),Object position Z(1)
`UpdateCam
Ang#=Wrapvalue(Ang#+0.0)
Angb#=Wrapvalue(Angb#+0.0)
AngC#=Wrapvalue(AngC#+0.0)
`UpdateOrb
SunA#=Wrapvalue( SunA# +0.2)
Loop
*As the two celestial bodies draw nearer (on one side as this is not elliptical yet
) heat should increase on the basis of 'shadow and darkness intensity.' How would I create an equation to tell the user what the heat is based on the sun's light. Now, I am aware that it would be only the "Global heat average" and I can work with that. If anyone has any suggestions as to how I can calculate or create an equation to simulate regional weather, please help me... I'll need it. I was hoping to link with a live server and just download data periodically and update the information that way... but I like the idea of simulating it if I can. Just lacking in math is a no-no when programming
. If you need me to explain more I would be happy to.
-Daryn
Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.