Empty branches on the tree

General discussion about Celestia that doesn't fit into other forums.
Topic author
Goonster
Posts: 79
Joined: 09.12.2007
With us: 16 years 11 months
Location: Jersey, Channel Islands

Empty branches on the tree

Post #1by Goonster » 24.12.2007, 08:32

I have just downloaded Frank Gregorio`s superb sun with the solar flares and it works fine . What I did notice is that when you go to Navigation>sol.sys.browser and scroll down to the sun , below it is 5 empty `branches ' on the menu tree . Is this supposed to happen ? I`m sure there used to be the option to re-run the intro but that is no longer there , I might be wrong . :o

rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Re: Empty branches on the tree

Post #2by rthorvald » 24.12.2007, 10:39

Goonster wrote:I have just downloaded Frank Gregorio`s superb sun with the solar flares and it works fine . What I did notice is that when you go to Navigation>sol.sys.browser and scroll down to the sun , below it is 5 empty `branches ' on the menu tree . Is this supposed to happen ? I`m sure there used to be the option to re-run the intro but that is no longer there , I might be wrong . :o


That is probably placeholders for the flares, that is entries in the ssc file with blank names. If not labelled like that, each flare would have a name.

- rthorvald
Image

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Re: Empty branches on the tree

Post #3by BobHegwood » 24.12.2007, 12:53

rthorvald wrote:That is probably placeholders for the flares, that is entries in the ssc file with blank names. If not labelled like that, each flare would have a name.

- rthorvald


And can these not be classed as "invisible" in 1.5pre5 and have these
refrences disappear altogether in the browser? Works like that now
on my system. Just FYI.

Thankls, Bob
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Topic author
Goonster
Posts: 79
Joined: 09.12.2007
With us: 16 years 11 months
Location: Jersey, Channel Islands

Re: Empty branches on the tree

Post #4by Goonster » 24.12.2007, 18:23

rthorvald wrote:
Goonster wrote:I have just downloaded Frank Gregorio`s superb sun with the solar flares and it works fine . What I did notice is that when you go to Navigation>sol.sys.browser and scroll down to the sun , below it is 5 empty `branches ' on the menu tree . Is this supposed to happen ? I`m sure there used to be the option to re-run the intro but that is no longer there , I might be wrong . :o

That is probably placeholders for the flares, that is entries in the ssc file with blank names. If not labelled like that, each flare would have a name.

- rthorvald


Ah so thats it . Thanks for that .

rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Re: Empty branches on the tree

Post #5by rthorvald » 25.12.2007, 14:32

BobHegwood wrote:And can these not be classed as "invisible" in 1.5pre5 and have these
refrences disappear altogether in the browser? Works like that now
on my system.


Well, then the flares would have been invisible, too...
We lack an object class that can have invisible names but visible objects.

- rthorvald
Image

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Re: Empty branches on the tree

Post #6by BobHegwood » 25.12.2007, 15:57

rthorvald wrote:
BobHegwood wrote:And can these not be classed as "invisible" in 1.5pre5 and have these
refrences disappear altogether in the browser? Works like that now
on my system.

Well, then the flares would have been invisible, too...
We lack an object class that can have invisible names but visible objects.

- rthorvald


I'm sorry here... I should re-state this.

There is now an invisible class that does show up in the browser. It
is entirely separated from spacecraft, for example.

I like it.

Thanks, Bob
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Re: Empty branches on the tree

Post #7by rthorvald » 25.12.2007, 16:00

BobHegwood wrote:There is now an invisible class that does show up in the browser. It
is entirely separated from spacecraft, for example.

Yes, but you can??t use this class to hold visible objects.

- rthorvald
Image

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Re: Empty branches on the tree

Post #8by BobHegwood » 25.12.2007, 16:11

rthorvald wrote:Yes, but you can??t use this class to hold visible objects.

- rthorvald


Already being used that way... Unless, of course, I'm wrong again.
Previous add-ons which used the invisible class for placeholders, for
example, still work. Or, at least they did. Sorry, but I just wiped my
system clean again, so that I could start on a fresh space to renew
my add-on testing. I could well be wrong again.

Big surprise there... :wink:
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Re: Empty branches on the tree

Post #9by rthorvald » 25.12.2007, 17:08

Already being used that way... Unless, of course, I'm wrong again.
Previous add-ons which used the invisible class for placeholders, for
example, still work.


Invisible placeholders use the invisible class. But not visible ones! And the flares needs to be visible, or it won??t be much to look at...

I think you confuse the subjects, here; an invisible placeholder is used if you want a visible object to orbit it. But in this case, the placeholder itself is visible, and if you assign it an invisible class, the actual object (in this case the flares) will become invisible...

In our case here, the placeholder must be VISIBLE since they ARE the flares. At the same time, you don??t want them to have names, so you give them empty SSC names, but use a VISIBLE class (like for example the "moon" or "spacecraft" class).

What we could need, is an invisible class tag that allows visible objects, but invisible object names.

- rthorvald
Image

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

Post #10by selden » 25.12.2007, 17:09

Bob,

Invisible objects are intended to be used as placeholders: you can use them as anchor-points relative to which visible objects can be placed.

However, a problem (as you've already discovered with my Hale Telescope) is that one often needs to place many visible objects relative to that invisible object (although I happened not to use Class "invisible"). Those visible objects often do not need to be individually selectable but they do need their own unique identifiers so that their positions and orientations can be Modified and so that other objects can be placed relative to them.

At the moment there's no way to have a named identifier which does not also show up in Celestia's lists of objects. At one point Chris was hoping to implement names which could be used in catalog files but which would not be listed or selectable by Celestia while it's running, but that hasn't happened yet. In particular, names starting with underscores wouldn't be listed.

I've added a feature request in Tracker on SourceForge to remind him about this :)
Selden

rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Post #11by rthorvald » 25.12.2007, 17:11

selden wrote:Invisible objects are intended to be used as placeholders: you can use them as anchor-points relative to which visible objects can be placed.


Thanks, you managed to describe the problem much better than i...

- rthorvald
Image

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #12by Vincent » 25.12.2007, 19:34

selden wrote:At the moment there's no way to have a named identifier which does not also show up in Celestia's lists of objects.

I've made a change recently in the code so that objects named as the empty string "" don't appear anymore in the Solar System browser... At least in the Windows version. So that should work with 1.5pre5.
@+
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 2 months
Location: NY, USA

Post #13by selden » 25.12.2007, 20:10

Vincent,

I trust you are aware that the use of " " as object names is a hack. It's used because a more general solution isn't available -- and only works for "terminal" objects. That is, it only works for objects which don't need to be Modified (oriented using the TwoVector directive, for example) or which don't need to have other objects oriented relative to them.
Selden

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #14by BobHegwood » 26.12.2007, 12:36

Well there ya go...

Now everyone can understand their use. here.

Thanks, Runar, Selden... Good stuff. :wink:
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #15by Vincent » 26.12.2007, 17:53

selden wrote:That is, it only works for objects which don't need to be Modified (oriented using the TwoVector directive, for example) or which don't need to have other objects oriented relative to them.
Selden,

I didn't realize you were talking about objects that need to be modified.

selden wrote:At one point Chris was hoping to implement names which could be used in catalog files but which would not be listed or selectable by Celestia while it's running, but that hasn't happened yet. In particular, names starting with underscores wouldn't be listed.

That's a good idea. I should have a patch ready quite soon...
@+
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

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #16by Vincent » 26.12.2007, 23:23

I made some change in the code that prevents objects whose name start with an underscore "_" from being listed in the Windows solar system browser and in the Windows popup menu. Also, these objects become not selectable, and their label and orbit are not drawn anymore.

Here are the modified source files for testing:
http://vincent.gian.club.fr/celestia/_objects.zip

And here's an exe file for Windows users:
http://vincent.gian.club.fr/celestia/_celestia.exe
@+
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

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #17by BobHegwood » 27.12.2007, 14:41

Vincent wrote:I made some change in the code that prevents objects whose name start with an underscore "_" from being listed in the Windows solar system browser and in the Windows popup menu. Also, these objects become not selectable, and their label and orbit are not drawn anymore.

Here are the modified source files for testing:
http://vincent.gian.club.fr/celestia/_objects.zip

And here's an exe file for Windows users:
http://vincent.gian.club.fr/celestia/_celestia.exe


Vincent,

Forgive my usual stupidity, but what does the Windows .exe file
represent?

It's much smaller than the normal Windows file, but when I use
it, I get simply the normal Celestia display - with modifications.

Can you tell us what exactly has been modified?

Thanks, Brain-Dead
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #18by Vincent » 27.12.2007, 15:10

BobHegwood wrote:Can you tell us what exactly has been modified?
Bob,

The changes are the ones I wrote in my post:
I made some change in the code that prevents objects whose name start with an underscore "_" from being listed in the Windows solar system browser and in the Windows popup menu. Also, these objects become not selectable, and their label and orbit are not drawn anymore.

You can try adding an underscore at the beginning of the name of an object defined in a .ssc file, e.g., change "ISS" into "_ISS". Then, you'll see that:
- _ISS is not listed anymore either in the solar system browser or in the windows popup menu
- The ISS is not selectable anymore, and its label and its orbit are not drawn anymore.

In short, objects whose name starts with an underscore "_" have the same properties as objects of the "Invisible" class, but they're drawn in the rendering scene.
@+
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

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #19by BobHegwood » 27.12.2007, 15:33

Vincent,

I'm sorry, but perhaps I didn't phrase the question correctly. We lost
13,461 KB from the original Celestia 1.5.Pre5 exe file, so I guess I
was wondering what happened to all of those bytes? I'm simply
assuming that your version is either calling the main program after
a fix, or it's calling everything else it needs independently of the
main program.

Do you understand what I mean? Sorry... I already know I
am Brain-Dead. :wink:
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Avatar
Adirondack M
Posts: 528
Joined: 01.03.2004
With us: 20 years 8 months

Post #20by Adirondack » 28.12.2007, 11:07

Bob,

though I didn't check it, I assume that Vincent's _celestia.exe lacks of some additional features (e.g. SPICE support) since this is just a test for invisible entries.

Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)
The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)


Return to “Celestia Users”