Re: [Celestia-developers] New cel functions
Real-time 3D visualization of space
Status: Beta
Brought to you by:
cjlaurel
From: Christophe T. <ch...@te...> - 2003-11-23 19:53:32
|
Ok, I've commited the patch. Thanks for testing it. =2D- Christophe Le Dimanche 23 Novembre 2003 19:48, Don Goyette a =E9crit : > Thank you for these great additions Christophe! > > I've tested them with the current CVS in Windows XP Pro and they seem > to work fine. > > -Don G. > > > ----- Original Message ----- > From: "Christophe Teyssier" <ch...@te...> > To: "Celestia Developers" <cel...@li...> > Sent: Saturday, November 22, 2003 2:08 AM > Subject: [Celestia-developers] New cel functions > > > Welcome back Chris, I hope you had a great time in New Zealand. > > > > The attached patch adds a cel script function and overloads four > > existing > > > functions. > > > > Is it ok to commit before 1.3.1? Are we nearing 1.3.1? > > > > New function: > > ** seturl > > Arg: url (string) > > Takes you to the location of the cel:// url. > > Example: > > seturl { url > > "cel://Follow/Sol/2002-09-01T16:58:51.32378?x=3DAAAAAMCrktOdILb5/////w&y > =3DCkxgAADEXts7E7HX/////w&z=3DVcpQAAAAAAAAAMIy/////w&ow=3D0.090610&ox=3D-= 0.494 > 683&oy=3D0.860207&oz=3D-0.084397&select=3DSol&fov=3D49.499992&ts=3D1.0000= 00<d=3D > 0&rf=3D6043&lm=3D0"} > > > Overloaded functions: > > ** time > > Arg: utc (string) > > Sets the time according to the UTC date string in > > YYYY-MM-DDTHH:MM:SS.SSSSS > > > format. > > Example: > > time { utc "2002-09-01T16:58:51.32378" } > > > > ** setposition > > Arg: x, y, z (string) > > Sets the observer's position to the x, y, z coordinates encoded in > > Base64. > > > Example: > > setposition { > > x "AAAAAMCrktOdILb5/////w" > > y "CkxgAADEXts7E7HX/////w" > > z "VcpQAAAAAAAAAMIy/////w" > > } > > > > ** setorientation > > Arg: ow, ox, oy, oz (number) > > Sets the observer's orientation to (ow, ox, oy, oz). > > Example: > > setorientation { > > ow 0.090610 > > ox -0.494683 > > oy 0.860207 > > oz -0.084397 > > } > > > > ** gotoloc > > Arg: time (number), x, y, z (string), ow, ox, oy, oz (number) > > Travels to the coodinates (x, y, z) encoded in Base64 and sets the > > orientation > > > to (ow, ox, oy, oz) over time seconds. > > Example: > > gotoloc { > > time 2 > > x "AAAAAMCrktOdILb5/////w" > > y "CkxgAADEXts7E7HX/////w" > > z "VcpQAAAAAAAAAMIy/////w" > > ow 0.090610 > > ox -0.494683 > > oy 0.860207 > > oz -0.084397 > > } > > > > -- > > Christophe |