A polar axis for Celestial objects

Post requests, images, descriptions and reports about work in progress here.
Avatar
Topic author
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 7 months
Location: NY, USA

A polar axis for Celestial objects

Post #1by selden » 20.11.2004, 15:23

This Addon can be used to draw an axial line through an SSC body. It's defined using Celestia's CMOD mesh object, so it only works with Celestia v1.3.2 or later.

More details are available at
http://www.lepp.cornell.edu/~seb/celestia/graticules.html#5


Image

It's available in
http://www.lepp.cornell.edu/~seb/celestia/cmod_axis.zip (2KB)

If you restore this Zip archive into your Addons (or extras) folder, it should create its files in all the necessary sub-directories.

axis.cmod is a text file in the models folder.
The northern half of the axis is green.
The southern half of the axis is red.
You can edit axis.cmod to change these colors as you wish.

The included example SSC catalog file, mars-axis.ssc, demonstrates the use of the model to draw an axial line through Mars.
Selden

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #2by Cham » 20.11.2004, 15:47

There's a small problem with this addon, Selden. The _Mars axis name is overlapping on the Mars name. Is there a way to remove the axis name ?

This axis should be made standard for all bodies in Celestia.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

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

Post #3by selden » 20.11.2004, 15:53

Cham,

The quickest fix is to change the name of the Axis to " " -- just a space. I'll add that as a comment to the ssc file.

My understanding is that Chris is intending that a future version of Celestia will make objects non-selectable and their names non-printable if their names start with an underscore. That hasn't happened yet, though. :(
Selden

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #4by Cham » 20.11.2004, 16:02

By the way, could you explain to me the uses of those 16 blue ticks around the planets, in Celestia 1.3.2 ? I'm a bit puzzled about them.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

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

Post #5by selden » 20.11.2004, 16:26

The blue ticks are intended to indicate azimuthal directions when your viewpoint is on the ground. Chris was intending to give them labels and a separate selection method, but I think he may have forgotten. Right now they always appear when "Show Celestial Grid" is enabled.
Selden

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #6by Cham » 20.11.2004, 16:32

Thanks. This feature could be usefull. Especially with the labels.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 10 months
Location: Rome, ITALY

Re: A polar axis for Celestial objects

Post #7by ANDREA » 20.11.2004, 22:53

selden wrote:This Addon can be used to draw an axial line through an SSC body. It's defined using Celestia's CMOD mesh object, so it only works with Celestia v1.3.2 or later..

Hello Selden, just a couple days ago I was showing to students Harry's nineplanets_v1.0.celx, and while doing it I was thinkink
"how nice would be it if the polar axis could be shown, to indicate the different 9 planets axes inclinations!" :wink:
Well, here it is! 8O
Very nice. :D
Just a little question: is it possible to change the length of the axis, North and South? :roll:
Thanks a lot anyhow.
By

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

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

Post #8by selden » 20.11.2004, 23:10

Andrea,

I'm glad you like it :)

The total length of the axis is controlled by the Radius that you specify in its SSC file.

If your planet has a Radius of 2000 km and you specify an Axis Radius of 3000 km, the Axis will protrude 1000 km on both sides of the planet.

Is that what you're asking?

I didn't try to make it possible to make the north end stick out further than the south end.

However, the two ends of the axis have different materials in the CMOD file. You can completely eliminate either end of the axis by changing its Opacity from 1.0 to 0.0, if you want.
Selden

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 10 months
Location: Rome, ITALY

Post #9by ANDREA » 20.11.2004, 23:31

selden wrote:Andrea, I'm glad you like it :) The total length of the axis is controlled by the Radius that you specify in its SSC file.
If your planet has a Radius of 2000 km and you specify an Axis Radius of 3000 km, the Axis will protrude 1000 km on both sides of the planet.
Is that what you're asking?
I didn't try to make it possible to make the north end stick out further than the south end, though.

Wow Selden, the quickest reply I've seen in a Forum. :lol:
And, yes, this is exactly what I was asking for, thank you.
The reason is that, as in your Mars image, the planet can cover one of the two semiaxes, making less clear their function. :wink:
Now it's perfect, thank you very much.
I'm sorry not to be able to give any help, but this is not for my will, but only for my total ignorance on programming, and I'm too old to start now. :oops:
The only thing I can do, is to appreciate and thank all the people that like you, modestly and without playing a fanfare, make Celestia alive and growing more and more beautiful and useful. :P
So, for what this can be worthwhile,
THANK YOU EVERYBODY! :D :D :D

Andrea
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO


Return to “Add-on development”