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 ?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.
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"
I can't reproduce this crash. Please let me know about your further investigation.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.