Confine This Filter To Sol - (cooler post than that sounds)

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
BlindedByTheLight
Posts: 485
Joined: 19.03.2005
With us: 19 years 8 months
Location: Los Angeles, CA

Confine This Filter To Sol - (cooler post than that sounds)

Post #1by BlindedByTheLight » 24.07.2005, 22:05

The manual for Celestia 1.32 says of the Star Filter/Faintest Star slider:

This slider determines how many stars Celestia will draw at one time. It regulates star number by how far away a star is from your viewpoint. By default, it is set at 1,000,000 light years. Since the diameter of our galaxy (the Milky Way) is about 100,000 LY across, Celestia will draw all stars in its data base at this slider setting. However, you can lower the slider and command Celestia to draw only closer stars. For example, if you set the slider to 100, the program will only draw stars that are within 100 light years of Earth.


However, it seems this "only draw so many stars a certain distance away" applies solely to whatever vantage point one is at. Which is good - for certain purposes (namely conserving processor power) but not so good for visualization purposes.

However, I thought it might be useful to be able to confine the Filter Star distances to Sol itself. So that I could tell Celestia to draw only the stars 100 light years away, but confine the "away" to an "away" from Sol. Since that confinement would be irrespective of my vantage point, I could then fly out and observe this "bubble" of stars around earth (similiar to what happens if you turn on the Constellation Boundaries and pull back very far).

This method has the advantage of being able to get a bird's eye view of how many stars are 10 light years from earth, then 50 light years... then see how the number grows when 100 light years from earth - and so on -- without being stuck INSIDE the bubble (which doesn't really give you a sense of it).

I love how Celestia allows user to get a "sense" of scale - and this feature would, I think, help. Often, when I'm showing new people Celestia and I pull back to reveal the stars they ask me, "Can you just show the stars that are 25 lights away" (and so on)... Of course, I CAN... but I have to be in that bubble now, which doesn't really give what they (and I) want.

GUI-wise, the simplest thing would be to add a "Confine This Filter To Sol" to the star fliter slider. Not sure what kind of code changes that would require.

Thanks,
Steven aka Blinded
Steven Binder, Mac OS X 10.4.10

JackCrow
Posts: 20
Joined: 22.05.2002
With us: 22 years 6 months
Location: MA

Post #2by JackCrow » 26.07.2005, 18:37

Check out Mostly Harmless http://mostlyharmless.sourceforge.net/index.htm.

It'll do what you want, but not the way you think.
Just because you can do something with a computer, doesn't mean you should.

Topic author
BlindedByTheLight
Posts: 485
Joined: 19.03.2005
With us: 19 years 8 months
Location: Los Angeles, CA

Post #3by BlindedByTheLight » 26.07.2005, 18:43

Thanks - but a few questions before I go digging:

1) It looks like Windows-only for the engine? True?
2) The other elements look like add-ons... which will just "add" to my star catalog... not limit it.

Or am I missing something?
Steven Binder, Mac OS X 10.4.10

JackCrow
Posts: 20
Joined: 22.05.2002
With us: 22 years 6 months
Location: MA

Post #4by JackCrow » 26.07.2005, 19:09

Whoops, sorry. It is Windows only.

The version I downloaded did a completely separate install, but I've seen posts that suggest there's an add-on version that complements your existing Celestia installation.

There's a batch file in MH that generates imaginary planetary systems for the entire star catalog. It took 6 hours to run on my system, but every start has planets now. Kinda cool to go hunting for terrestial planets...
Just because you can do something with a computer, doesn't mean you should.

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

Post #5by selden » 26.07.2005, 19:13

At the time its author disappeared (he went on walkabout and hasn't been heard from since), Mostly Harmless was a complete version of Celestia, not an Addon. The description is rather misleading in that respect. It includes an SQL Database implementation, which lets you select the stars that are to be shown by using SQL queries.

[edit]Do a search of the Celestia forum here. He made several postings displaying some of the features.[/edit]
Selden

Topic author
BlindedByTheLight
Posts: 485
Joined: 19.03.2005
With us: 19 years 8 months
Location: Los Angeles, CA

Post #6by BlindedByTheLight » 26.07.2005, 19:22

selden wrote:(he went on walkabout and hasn't been heard from since)


lol... I like how you dropped in that cryptic and scary-sounding bit then jumped right into the SQL business...

Seriously, though - I hope everything is okay.

For all the coders reading this post, my guess is that Celestia handles the Filter Stars / Faintest Stars slider (which is it? the manual says Filter - my Mac version says Faintest) by some kind of subroutine that takes the viewers present location (I'm guessing an offset from Earth?) and only renders the stars that are a certain distance from that location. True?

And, if true, is it only a matter of telling that subroutine to NOT use the offset - and to use Earth's location as a "Only Render Stars From This Point" reference? That way - a bubble of stars can be seen around earth from any vantage point - per my initial post.

P.S. If anyone doubts to potential coolness of this - pull up the constellation boundaries marker and go 50 light years out... rotate around. Now imagine being able to do that with just the stars in our local region. And being able to say, "Hmm... now how many are THIS far out?" Then expand the bubble to see how many are THAT far out... and so on.
Steven Binder, Mac OS X 10.4.10

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

Post #7by selden » 26.07.2005, 19:35

Gee, it didn't seem particularly cryptic to me, but maybe that's because I've seen too many movies that take place in Australia :)

"Walkabout" is a tradition that originated with the Australian aboriginees -- they renew their spiritual strength by leaving everything and travelling around the continent on foot. In this case, Marc seems to have used a vehicle, but I guess that's the modern equivalent. He posted a picture to the MH Web forum about a year ago showing one of his campsites, but hasn't posted anything since. See http://mostlyharmless.sourceforge.net/m ... c.php?t=87
Selden

Topic author
BlindedByTheLight
Posts: 485
Joined: 19.03.2005
With us: 19 years 8 months
Location: Los Angeles, CA

Post #8by BlindedByTheLight » 26.07.2005, 19:47

selden wrote:Gee, it didn't seem particularly cryptic to me, but maybe that's because I've seen too many movies that take place in Australia :)


Awesome pic. Thanks. Though it wasn't the "going on the walkabout" that was cryptic... it was the "never came back" part... :)
Steven Binder, Mac OS X 10.4.10

hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #9by hank » 27.07.2005, 00:22

IIRC the filter is based on brightness, not distance.

- Hank

Topic author
BlindedByTheLight
Posts: 485
Joined: 19.03.2005
With us: 19 years 8 months
Location: Los Angeles, CA

Post #10by BlindedByTheLight » 27.07.2005, 00:35

hank wrote:IIRC the filter is based on brightness, not distance.

- Hank


Thanks, Hank. That's actually what I thought initially. After all, the slider is called "Faintest Stars" which is what initially made me think it was brightness-related, not distance related.

For clarification, before I go on: Is that, then, the same thing as the "Filter Stars" slider I referenced above and that is listed in the manual?

The manual talks about distance, not brightness. Are we talking about the same thing and the manual uses different terms? Or is there a difference between the Mac OS and other versions?
Steven Binder, Mac OS X 10.4.10

hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #11by hank » 27.07.2005, 07:27

BlindedByTheLight wrote:
hank wrote:IIRC the filter is based on brightness, not distance.

- Hank

Thanks, Hank. That's actually what I thought initially. After all, the slider is called "Faintest Stars" which is what initially made me think it was brightness-related, not distance related.

For clarification, before I go on: Is that, then, the same thing as the "Filter Stars" slider I referenced above and that is listed in the manual?

The manual talks about distance, not brightness. Are we talking about the same thing and the manual uses different terms? Or is there a difference between the Mac OS and other versions?


I believe "Faintest Stars" is the same as "Stars Visible" in the manual. AFAIK "Filter Stars" is not implemented in Mac OS X Celestia.

- Hank

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #12by ElChristou » 27.07.2005, 12:26

hank wrote:..."Filter Stars" is not implemented in Mac OS X Celestia....


Is the reason of this a coding problem or just lack of time for the port?
Image

hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #13by hank » 27.07.2005, 14:18

ElChristou wrote:
hank wrote:..."Filter Stars" is not implemented in Mac OS X Celestia....

Is the reason of this a coding problem or just lack of time for the port?

Actually, I think I just overlooked it. It shouldn't be hard to implement.

- Hank

Topic author
BlindedByTheLight
Posts: 485
Joined: 19.03.2005
With us: 19 years 8 months
Location: Los Angeles, CA

Post #14by BlindedByTheLight » 27.07.2005, 19:31

hank wrote:Actually, I think I just overlooked it. It shouldn't be hard to implement.

- Hank


Yoo hoo!

Also, FYI - yep, the Faintest Stars slider in preferences is the Stars Visible function in the manual (just curious - how come there is a different name?) - however, the slider does not reflect the actual numeric value of the apparent magnitude of stars it will display.

What DOES display this number is using the keyboard (brackets) to control the same function. The reverse is not true -- using the brackets to change Apparent Magnitude does not update the slider position - which, technically, it should I think?

A minor tweak that I could really care less about - just throwing it out there. But that filter stars function... like I said:

Yoo hoo!

:)
Steven Binder, Mac OS X 10.4.10


Return to “Development”