Return Position celx

Post requests, images, descriptions and reports about work in progress here.
Topic author
foravalon
Posts: 50
Joined: 07.05.2005
With us: 19 years 6 months
Location: Santa Rosa, CA

Return Position celx

Post #1by foravalon » 06.08.2009, 02:01

Question for y'all,

This seems like something simple but I've had a hard time finding something to fit the bill. Is there some kind of script out there that that will enable Celestia to display the real time values (whether they be in universal coordinates, latitude and longitude, or even vectors or something) of the current position of the "Camera's" point of View in relation to a selected object?

I've seen a script in the past that would return and display one's current Azimuth and such but what I'm really looking for is something that will output values which are usable in a celx script.

To translate my goal into even plainer English, what I'd really love to be able to do is Position the camera's pov in the program with just the right angle and orientation in relation to whatever I'm looking at and then have that data displayed so I can copy it for use in replicating that position and perspective with a celx script. That way, others can click on the file and be taken to the same place with the identical desired perspective.

Does this make any sense?
Foravalon's most common phrase: "So, yeah, um, how do you do this... ?"

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 10 months

Re: Return Position celx

Post #2by Chuft-Captain » 06.08.2009, 12:32

There are new script commands just created recently which should do what you want: Have a look at this post: Subject: .CelX equivalent to the Goto URL in .CEL ?
Vincent wrote:The seturl/geturl and synchronizetime/istimesynchronized methods have been added to the celestia object in celx scripting.
This concerns the current development versions, i.e., both the trunk and the 1.6.1 branch in SVN.

More information about how to use these commands can be found here:
http://en.wikibooks.org/wiki/Celestia/C ... tia#seturl
....

These commands were not included in 1.6.0 but will be available in 1.6.1. If you cannot wait, I have an executable which includes them, which I can post if you want it.

CC
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Topic author
foravalon
Posts: 50
Joined: 07.05.2005
With us: 19 years 6 months
Location: Santa Rosa, CA

Re: Return Position celx

Post #3by foravalon » 06.08.2009, 21:34

That's pretty awesome, yeah, I would like to check out that exe, so what is that exactly? Just your variation of the celestia program?
Foravalon's most common phrase: "So, yeah, um, how do you do this... ?"

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 10 months

Re: Return Position celx

Post #4by Chuft-Captain » 07.08.2009, 07:00

I forgot to ask what OS are you using?
There's nothing special about this build, it's just a more recent build than 1.6.0.
(It's built from SVN 4814 which includes the features you need)
However it is a windows build which is of no use to you if you are using LINUX or MAC.

The other pre-requisite is that you need to have a 1.6.0 version already installed: http://www.celestiaproject.net/celestia/download.html
Then all you'll need to do is drop this executable into your 1.6.0 Celestia folder and change/create shortcuts to point to it.

If you satisfy these pre-requisites, then let me know and I'll upload it for you.

Otherwise...
If you are on a different OS platform, there's no point in me uploading it, but perhaps someone else also using the same OS as you will build it for you if you ask nicely. :)
Or, if you have any sort of programming experience, you can easily build it for yourself if you make the effort to become competent/familiar with Subversion source code control, and VS2008 C++ IDE.

Cheers
CC
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 10 months

Re: Return Position celx

Post #5by Chuft-Captain » 10.08.2009, 02:08

Sorry for the delay foravalon, but my usual hosting service (sitesled)has been in-accessible (as usual :? ) so I have been unable to upload it yet.

CC
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Topic author
foravalon
Posts: 50
Joined: 07.05.2005
With us: 19 years 6 months
Location: Santa Rosa, CA

Re: Return Position celx

Post #6by foravalon » 11.08.2009, 04:10

Hey no problem Chuft, I really appreciate the effort, so far I've had almost Zero response to my other posted topics. I'm looking for a way to create txf files for use in celestia, and I'm also trying to figure out how to simply rotate the camera with celx, hopefully this may be a solution. I'm curious how the whole URL thing relates to celestia exactly, that stands for uniform resource locator, right? I've only seen the term in reference to web pages. I'm eager to see what the result of its use in the program is.

To answer your earlier question I'm using windows XP, I also have almost no programing experience and the extent of my celx creation/usage to date mostly consists of modifying preexisting code. Given that, if we can make this work I might ask for your assistance with the "change/create shortcuts to point to it" part of the modification. Once again I appreciate the assist.
Foravalon's most common phrase: "So, yeah, um, how do you do this... ?"

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 10 months

Re: Return Position celx

Post #7by Chuft-Captain » 15.08.2009, 05:17

I am afraid that SITESLED is effectively history.

The service has become progressively less and less reliable over the past year or so, and is suffering a slow agonizing death from neglect.
Currently, although webpages are accessible, it's impossible to login in order to upload files or maintain sites. Any attempt to login to SITESLED gives this message: "The username you entered wasn't found in our database".

When I emailed their support email support@sitesled.com about this, I got a mailer-daemon message that the email address is not available, so I think that pretty much says it all. :roll:

I had previously formed the impression that Sitesled was a bit of a one-man show - Support emails always came from the same guy (called Jay), so I guess he's found better things to do than run a web-hosting business.
Nice of him to let us know. :(

I'll upload that file for you when I get around to finding an alternative hosting service (or perhaps someone else in the forum has a recent build they can make available for you).

CC
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS


Return to “Add-on development”