New SSC object classes and property
Posted: 30.12.2007, 21:40
There's been some discussion on the Celestia developers mailing list about introducing new object classes for SSC objects as well as some new properties.
Starting with the easy things . . . Cham has been requesting for some time the addition of a Clickable field for objects (for stars and deep sky objects as well as for solar system objects.) By default, this field is set to true: when a user clicks on the object, it will be selected. Setting Clickable to false will disable selection by clicking. The object would still be selectable through the Solar System browser and Find Object dialogs.
It can also be desirable to prevent objects from appearing in the Solar System browser. Selden mentioned complaints that his Hale add-on introduced so many Earth-orbiting objects into the Solar System browser that it became difficult to find any object other than a Hale component. One proposal for working around this is the addition of a 'Browsable' property: set it to false, and the object won't appear in the browser. I personally prefer a different approach: adding new object classes, and grouping objects in the browser by class.
One new object type might be "surfacefeature"; another useful one might be "component", for parts of a spacecraft or building. The new classes address several problems at once:
- There's no sensible way to tag an object like an volcanic or ground-based observatory (to pick two recent examples) right now. The two common choices are spacecraft and asteroid, neither of which are appropriate.
- It would be convenient to have objects distinguished by type in the solar system browser. As it is now, it's confusing to have the moon appear together with spacecraft and surface features in the list of child objects for the Earth.
- When moons, spacecraft, and asteroids occupy less than a pixel on screen, they're rendered as points of light, mimicking what we see in the sky. However, this behavior isn't appropriate for buildings and other surface features. Distinguishing them by specifying Class "surfacefeature" would let Celestia disable it.
What I'd like feedback on is:
- Does my description of the Clickable property match your own idea of how it should work? If not, what should be different?
- Would the new object classes and browser grouping solve the confusing mess of objects that you can see in the Solar System browser after installing add-ons?
- What do you think of the class names? Are there others that would be useful?
--Chris
Starting with the easy things . . . Cham has been requesting for some time the addition of a Clickable field for objects (for stars and deep sky objects as well as for solar system objects.) By default, this field is set to true: when a user clicks on the object, it will be selected. Setting Clickable to false will disable selection by clicking. The object would still be selectable through the Solar System browser and Find Object dialogs.
It can also be desirable to prevent objects from appearing in the Solar System browser. Selden mentioned complaints that his Hale add-on introduced so many Earth-orbiting objects into the Solar System browser that it became difficult to find any object other than a Hale component. One proposal for working around this is the addition of a 'Browsable' property: set it to false, and the object won't appear in the browser. I personally prefer a different approach: adding new object classes, and grouping objects in the browser by class.
One new object type might be "surfacefeature"; another useful one might be "component", for parts of a spacecraft or building. The new classes address several problems at once:
- There's no sensible way to tag an object like an volcanic or ground-based observatory (to pick two recent examples) right now. The two common choices are spacecraft and asteroid, neither of which are appropriate.
- It would be convenient to have objects distinguished by type in the solar system browser. As it is now, it's confusing to have the moon appear together with spacecraft and surface features in the list of child objects for the Earth.
- When moons, spacecraft, and asteroids occupy less than a pixel on screen, they're rendered as points of light, mimicking what we see in the sky. However, this behavior isn't appropriate for buildings and other surface features. Distinguishing them by specifying Class "surfacefeature" would let Celestia disable it.
What I'd like feedback on is:
- Does my description of the Clickable property match your own idea of how it should work? If not, what should be different?
- Would the new object classes and browser grouping solve the confusing mess of objects that you can see in the Solar System browser after installing add-ons?
- What do you think of the class names? Are there others that would be useful?
--Chris