New "plug-in" for Celestia

Post requests, images, descriptions and reports about work in progress here.
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: New "plug-in" for Celestia

Post #81by Vincent » 24.01.2010, 10:46

Hi Serge,

NorthOfPolaris wrote:This works well as can be seen in the accompanying picture but I have a question. This line of code can get quite long and messy as objects are added to it and I was wondering if the code could not include a line for Deep Space Objects (dso) to sort by categories the pictures we want to add to the program.
Do you mean that all DSOs should share the same images and folder, like it is already the case for pulsars or black holes or exoplanets ?
Or would you like each DSO to keep its own specific set of images? In this latter case, you need to keep on adding DSO names to the
objectname_t list. JFYI, you can move the objectname_t list into a new file called, e.g., "picture_obj.lua" and organize it like:

Code: Select all

objectname_t = {
    ----------------
    -- Solar system objects:
    ----------------
    "Sol",
    "Mercury",
    "Venus",
    "Earth",
    "Moon",
    "Mars",
    "Jupiter",
    "Saturn",
    "Titan",
    "Itokawa",
    ----------------
    -- DSOs:
    ----------------
    "Milky Way",
    "M 31",
}

Then, don't forget to add the following call at the beginning of your pictureBox.lua file:

Code: Select all

require "picture_obj"



NorthOfPolaris wrote:As an added note, I find that Celestia crashes on occasion when using the image box but I can't reproduce it consistently. It appears that if the picture box is showing and another object is selected and the "G" key is pressed then the program will simply exit without warning. I will try to nail it down more precisely.
I can't reproduce this crash. Please let me know about your further investigation.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Re: New "plug-in" for Celestia

Post #82by selden » 24.01.2010, 13:16

Serge,

Please make sure you've updated your computer's graphics driver to the current version. It should be available for free downloading from the Web site of the manufacturer of your graphics hardware.

Most of Celestia's crashes are due to bugs in the graphics driver, although it's certainly possible for code bugs to do it, too.
Selden

NorthOfPolaris
Posts: 10
Joined: 31.12.2009
With us: 14 years 11 months
Location: Quebec City

Re: New "plug-in" for Celestia

Post #83by NorthOfPolaris » 24.01.2010, 19:47

Thank you all for the positive responses.

Vincent, I opted for the separate file for the "picture_obj.lua" where I can organize everything neatly and it works very nicely.

Fortunately or unfortunately, I can't reproduce the program faillure for the time being but I will keep an eye on it and report any further difficulties.

Selden, thank you for the reminder however the software drivers are up to date for the graphics card. These drivers support Open GL 3.2.0. I certainly hope this would not be the cause of the software faillures I experienced. The problem occured three times but as I said above, it has not manifested itself in the past couple of days.

Serge


Return to “Add-on development”