[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-22 09:08:23
|
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=AAAAAMCrktOdILb5/////w&y=CkxgAADEXts7E7HX/////w&z=VcpQAAAAAAAAAMIy/////w&ow=0.090610&ox=-0.494683&oy=0.860207&oz=-0.084397&select=Sol&fov=49.499992&ts=1.000000<d=0&rf=6043&lm=0"} 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 |