omg, i forgot my math

Miscellaneous Forums/General Discussion/omg, i forgot my math

guys, help me out... how do i calculate an eclipse again?
what i want is have a light move around an object in eclipse rotation, not a circle..
this could be done using Sin() Cos()... lol

Graphics 640,480
x:Float = 320
y:Float = 240
width:Float = 50
height:Float = 25

a:Float = 0
While Not KeyDown(Key_Escape)
  Cls
  a:+1
  DrawOval Cos(a) * width + x, Sin(a) * height + y,2,2
  DrawOval x,y,2,2
  Flip
Wend


thanks, appreciate it :)

all i had todo was add *.5 after the Sin(i)..lol.. i knew it was something simple.

Graphics3D 800,600,32,0
SetBuffer BackBuffer()
AntiAlias 1

cam=CreateCamera()
PositionEntity cam, 0,0,-1
AmbientLight 0,0,0
;CameraClsColor cam, 255,255,255

star=CreateCube()
ScaleEntity star,.6,.4,.2
;star=LoadMesh("goldstar.x")
;ScaleEntity star,.1,.1,.1
PositionEntity star, 0,0,.5

light=CreateLight(2) 

While Not KeyDown(1)
	a#=a+1
	
	PositionEntity light, Cos(180+a), Cos(180+a)*.6, Sin(180+a)*.5
	LightRange light,-EntityZ(light)*2	
		
	RenderWorld
	Flip
Wend
End


xD

btw, is it possible to set an entityclscolor? because it fades black, and i want it to fade white.

If I understand you right:
CameraFogColor cam,255,255,255


Is that a solar or a lunar eclipse?

now now John.. don't pick on the boy!! ;)

lunar eclipse xD lol!

@GfK, nope.. still turns black.

Crikey, I didn't even notice that typo when I first read this. That's a bit worrying.

lol, what ytpo?

You wrote 'eclipse' instead of 'ellipse'.

lunar eclipse xD lol!
Why did you post that if you didn't know? o_O

lol, what ytpo?

big10p, maybe you missed another one?

Didn't miss it - just fed up of pointing them out. :P

I didn't see it either and didn't get John's post but I skim read it. You do see some pretty weird spellings on this forum (and they are not all typos). I wonder if there is a high number of dyslexics? It's also interesting to hear anomalies when people speak. For example, lots of people say "pacific" as in the Ocean instead of "specific", I always find this amusing. In fact, the route of bad spelling is often that people don't say the words correctly in the first place, so what hope in hell have they of spelling them correctly? Up until my 20s I kept finding words that I'd been saying wrong all my life!

I blame mobile phones, oh, and tony blair, lol! :D

Dabz

im just testing you guys :-P
[imghttp://indy.50megs.com/images/Dr%20Evil.jpg]

another typo! You mispelled "gays" ... ;-)

For example, lots of people say "pacific" as in the Ocean instead of "specific", I always find this amusing.

Don't even get me started on people who insist on talking about "skellingtons".


I always find this amusing. In fact, the route of bad spelling is often that people don't say the words correctly in the first place


Quite ironic this sentence. No such thing as "the route of bad spelling". The "root cause of bad spelling " or "reason for bad spelling" would be better.

OT---

Gab, there's a new Setup file for TV3D. Released a couple of days ago.

Just thought I'd let you know. :)

Back on topic. I remember years ago watching an episode of Jerry springer. This woman was on the stage shouting that she would take a freternity test to prove who her baby's daddy was.

Everytime she said freternity test the audience laughed and she couldn't figure out why.

Paternity >>> Fraternity. She was a hillbilly though and was sleeping with her sister.

Ahh, you gotta love jerry springer. :)

Back on to the real topic now.

OT---

Gab, there's a new Setup file for TV3D. Released a couple of days ago.

Just thought I'd let you know. :)

Thanks, I did spot this one. I also spotted a number of people having problems with it ( actor animations and transparency for two ) so - since I can't tell if it's user error or new version error - I decided to hold off unless someone specifically needs something they added in the new version. As far as I can tell, very little was added. So it's likely a five minute job for me to compile, but I don't want to break everyone's projects unless someone has a genuine need for something new in this release.

Ricky Smith: Well spotted. I know the difference of course, but sometimes late at night those sort of things slip through...