Posts by alexibu

by alexibu
17.12.2003, 17:03
Forum: Development
Topic: LUA scripting additions
Replies: 19
Views: 7846

LUA scripting additions

Hi All, Ive added functionality to the LUA scripting interface. Whether or not this functionality will apear in CVS im not sure, but if anyone is interested I have written code to: - Allow Labels and Orbits to be switched on and off on a body by body basis. - Allow scripting of multiple views - Set ...
by alexibu
17.12.2003, 11:28
Forum: Development
Topic: Kinks in moon and earth orbits
Replies: 6
Views: 3533

Kinks in orbits

Hank,
I had nSamples set to 1000 instead of 100 to get better quality orbits - don't know if this would cause the above or not.
Alex
by alexibu
16.12.2003, 12:26
Forum: Development
Topic: Kinks in moon and earth orbits
Replies: 6
Views: 3533

Kinks worse now

Hi Alexibu, I believe that issue has been resolved in the latest CVS code. pm Noticed this when i was having a look at the fix for kinks in orbits http://homepage.mac.com/alexibu/moonkink.jpeg Orbit lines now go through the center of bodies which looks much better :) - however this makes the fact th...
by alexibu
16.12.2003, 11:02
Forum: Development
Topic: LUA scripting documentation generation
Replies: 5
Views: 3177

Re: LUA scripting documentation generation

Don, The code writes a (synopsis?) of all the classes and methods out to a text file when the lua interface is initialised. Can you explain this differently? Did you embed this list inside the source code, or is it "generated" by reading the source code? I added some code to make it easy to describe...
by alexibu
16.12.2003, 10:52
Forum: Development
Topic: LUA scripting documentation generation
Replies: 5
Views: 3177

Instructions for getting LUA to compile in celestia

Don, The way I did it was to download the LUA source and read the instructions it has on how to make the LUA library and the LUA standard libraries. The instructions are in the INSTALL file. I got all the files that the INSTALL file listed for 'core lib' and 'standard lib' and made two projects in v...
by alexibu
15.12.2003, 14:24
Forum: Development
Topic: LUA scripting documentation generation
Replies: 5
Views: 3177

LUA scripting documentation generation

Hi All, I have managed to get celestia compiling with LUA, and have added some code to allow developers of the LUA interface to document it. The code writes a (synopsis?) of all the classes and methods out to a text file when the lua interface is initialised. Youll be able to turn it off with a swit...
by alexibu
11.12.2003, 16:56
Forum: Development
Topic: Status of celestia scripting
Replies: 6
Views: 3549

Status of celestia scripting

I would like to add to the scriptability of celestia - exposing futher functions, specifically to allow the scripting of window splitting and controlling the two views, and the ability to switch specific orbits on and off. What is the status of LUA scripting ? Is anyone in particular working on it ?...
by alexibu
10.12.2003, 16:53
Forum: Development
Topic: Kinks in moon and earth orbits
Replies: 6
Views: 3533

Kinks in orbits

Hi, Now that I understand the reason for the kinks and how celestia samples the orbits: Would anyone be philosophically opposed to us moving the kink to the other side of the orbit ? i.e. sampling the orbit from -0.5 to +0.5 years instead of from 0 to 1 years. :roll: This would help because you noti...
by alexibu
10.12.2003, 16:43
Forum: Development
Topic: Orbit lines clipped correctly
Replies: 1
Views: 1489

Orbit lines clipped correctly

Hi, At the moment orbit lines are obscured by planets and are not rendered with a depth buffer. This means that you can never see the orbits of satelites of earth (for example) except where the orbit lines are next to and not infront or behind earth in the observers view. It also means that no matte...
by alexibu
04.12.2003, 14:02
Forum: Development
Topic: Azimuth and Altitude of a body from earth
Replies: 4
Views: 2739

Alt / Az code

Hi, Ive now fixed this code. :? void Body::getDirectionFromSurface(const Vec3f& lonLatAlt,const UniversalCoord & TargetPos, const double & TargetRadius,const double when, double& Dist,double& Azimuth,double&Altitude) { //get the position of the observers sun in universal coords Point3f ...
by alexibu
04.12.2003, 13:58
Forum: Development
Topic: MacOS X Celestia Users: Development Priorities?
Replies: 40
Views: 20860

OSX priorities

It would be good if celestia didn't use CPU time when it was paused. The windows version does it too but it will need OS specific code.
:)
by alexibu
02.12.2003, 18:58
Forum: Development
Topic: Azimuth and Altitude of a body from earth
Replies: 4
Views: 2739

Alt / Az code

Err,
The code I posted doesn't work,
Ill post a new one soon
sorry
Alex :cry:
by alexibu
02.12.2003, 12:16
Forum: Development
Topic: Azimuth and Altitude of a body from earth
Replies: 4
Views: 2739

Altitude and Azimuth calcs updated

Hi, Ive changed the function that I posted for calculating the Alt/Azimuth of a body from the surface of a planet. It now works for any object not just other bodies in the solar system, and is double precision for the important parts. Changed body argument to a universal coord. Alex void Body::getDi...
by alexibu
28.11.2003, 18:06
Forum: Development
Topic: Kinks in moon and earth orbits
Replies: 6
Views: 3533

Kinks in moon and earth orbits

Ive noticed that there are significant kinks in the earths and moons orbits. Next to their current position, when viewing from a position perpendicular to the plane of the orbit. It was even more evident when I increase the number of samples (nSamples) in the orbits to 10,000 from 100. Does anyone k...
by alexibu
20.11.2003, 12:19
Forum: Celestia Users
Topic: Telescope Control????
Replies: 14
Views: 8166

Altitude and Azimuth calcs

Hi, If anyone is working on controlling a telescope, ive posted code in Celestia Development http://ennui.shatters.net/forum/viewtopic.php?t=3804 to work out the angles of azimuth and altitude and the distance of any celestial body given the observers latitude,longitude and altitude above the earths...
by alexibu
20.11.2003, 12:13
Forum: Development
Topic: Azimuth and Altitude of a body from earth
Replies: 4
Views: 2739

Azimuth and Altitude of a body from earth

Hi, Ive created a method to calculate the position of a celestial body in the sky given the observers location on a planet and the time. Im not sure how accurate it is because I don't know what to trust more (celestia and my calcs - possibly with precision probs) or other sky map programs. This woul...
by alexibu
17.11.2003, 15:15
Forum: Development
Topic: Using MFC on Windows with celestia
Replies: 1
Views: 1449

Using MFC on Windows with celestia

Hi, I am trying to get the celestia core to work in a Windows application using MFC. Problem : The performance of celestia is really bad - about 4 fps instead of the 20 + fps in the celestia application - on a pentium 4 ? GHz. The problem is not to do with graphics because even the initialisation ru...

Go to advanced search