Probable Noob question

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Probable Noob question

Post #1by ElChristou » 23.12.2007, 21:16

Why do we keep the LabelledStars entries in celestia.cfg?
Image

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

Re: Probable Noob question

Post #2by rthorvald » 23.12.2007, 22:15

ElChristou wrote:Why do we keep the LabelledStars entries in celestia.cfg?

So you can label your own stars...

- rthorvald
Image

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

Re: Probable Noob question

Post #3by ElChristou » 24.12.2007, 00:43

rthorvald wrote:
ElChristou wrote:Why do we keep the LabelledStars entries in celestia.cfg?
So you can label your own stars...

- rthorvald


??

Wasn't the LabelledStars to label stars before the general implementation of stars' label?
Image

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 2 months
Location: Indiana, United States

Post #4by Hungry4info » 24.12.2007, 02:46

Indeed. Now stars are labeled in accordiance with their visual magnitude. I guess there's no real reason to keep a list of stars to lable.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

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

Post #5by ElChristou » 24.12.2007, 17:46

Another one: is there a good reason to always display the speed (bottom left corner)? I mean why not displaying it only if positive? (it could stay at zero a few seconds then fade out?)
Image

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

Post #6by ElChristou » 30.12.2007, 12:43

ElChristou wrote:Another one: is there a good reason to always display the speed (bottom left corner)? I mean why not displaying it only if positive? (it could stay at zero a few seconds then fade out?)


Seems this one was really a noob one... then someone can enlighten me? :?
Image

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

Post #7by BobHegwood » 30.12.2007, 12:56

Don't know about others, but I actually like this feature. Rather
interesting to see the real time-scales necessary in order for us poor
slow-witted humans to notice changes in the Universe. :wink:

I suppose that you could modify this feature to be selectable or such,
but I personally don't see the need. Just my opinion though.

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

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

Post #8by ElChristou » 30.12.2007, 13:21

BobHegwood wrote:Don't know about others, but I actually like this feature. Rather
interesting to see the real time-scales necessary in order for us poor
slow-witted humans to notice changes in the Universe. :wink:


?? Bob, I think I don't follow you well... :oops: What are you talking about??
Image

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

Post #9by Vincent » 30.12.2007, 13:41

ElChristou wrote:Another one: is there a good reason to always display the speed (bottom left corner)? I mean why not displaying it only if positive? (it could stay at zero a few seconds then fade out?)

Chris,

That can be done using, e.g., the following celx script, which furthermore is a simple tick event handling example:

Code: Select all

-- Title: Toggle speed overlay element (tick event handling example)

function toogleSpeedOverlay()
   t = celestia:getoverlayelements()
   celestia:setoverlayelements{Velocity = not(t.Velocity)}
end

function handletick()
   speed = math.abs(celestia:getobserver():getspeed())
   showSpeed = celestia:getoverlayelements().Velocity
   if (speed > 1e-12 and not(showSpeed)) or (speed <= 1e-12 and showSpeed) then
      toogleSpeedOverlay()
   end
end

celestia:registereventhandler("tick", handletick)

Sorry, no fading effect available (yet), though... :wink:
@+
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

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

Post #10by ElChristou » 30.12.2007, 14:24

Vince, before talking about code, I really would like to know what is the reason (they must be one!) to have the speed always displayed. Now if there is no particular reason, then if it's reasonable to remove after a few seconds the display.

Perso I think that it could be removed, but perhaps I'm forgetting something, it's why I'm asking...
Image

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

Post #11by Vincent » 30.12.2007, 14:28

ElChristou wrote:Vince, before talking about code, I really would like to know what is the reason (they must be one!) to have the speed always displayed. Now if there is no particular reason, then if it's reasonable to remove after a few seconds the display.

Chris,

This isn't a piece of C++ code, but a simple Celx script that can be added to your start.celx file in order to do the trick you requested...
@+
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 #12by BobHegwood » 30.12.2007, 14:49

ElChristou wrote:Another one: is there a good reason to always display the speed (bottom left corner)? I mean why not displaying it only if positive? (it could stay at zero a few seconds then fade out?)


You don't follow me well?

I LIKE THIS FEATURE... Is that plain enough? :roll:
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
ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #13by ElChristou » 30.12.2007, 15:38

BobHegwood wrote:You don't follow me well?

Yes Bob, I'm really sorry but with this comment of yours:

BobHegwood wrote:Rather interesting to see the real time-scales necessary in order for us poor slow-witted humans to notice changes in the Universe.


(probably I don't understand, but) actually I don't see the relation between the speed of the observer and the changes in the Universe within Celestia...

The only feature I see related to changes of the scene in time is the Time setting itself...

So yes I don't follow you well and I'm sorry...

**

Now, the only reason I can think about keeping the display, would be some kind of reminder for the feature... Is that a valid enough reason?
Image

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

Post #14by ElChristou » 30.12.2007, 15:40

Vincent wrote:
ElChristou wrote:Vince, before talking about code, I really would like to know what is the reason (they must be one!) to have the speed always displayed. Now if there is no particular reason, then if it's reasonable to remove after a few seconds the display.
Chris,

This isn't a piece of C++ code, but a simple Celx script that can be added to your start.celx file in order to do the trick you requested...


Oops, ok then, I'll give a go to see... :wink:
Image

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #15by chris » 30.12.2007, 17:09

Hungry4info wrote:Indeed. Now stars are labeled in accordiance with their visual magnitude. I guess there's no real reason to keep a list of stars to lable.


Yes, LabelledStars should be removed from celestia.cfg. It is no longer used.

--Chris

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

Post #16by BobHegwood » 30.12.2007, 17:44

ElChristou wrote:
BobHegwood wrote:Rather interesting to see the real time-scales necessary in order for us poor slow-witted humans to notice changes in the Universe.

(probably I don't understand, but) actually I don't see the relation between the speed of the observer and the changes in the Universe within Celestia...

The only feature I see related to changes of the scene in time is the Time setting itself...

So yes I don't follow you well and I'm sorry...

**

Now, the only reason I can think about keeping the display, would be some kind of reminder for the feature... Is that a valid enough reason?


Well, maybe we're just not talking about the same feature? I
enjoy being able to see how fast one has to go in order to get to
a particular location even within the Solar System. Even at the
speed of light it takes a while to get to Mars. You understand
what I mean?

Sorry myself... I'm just a very grumpy old man as you oughtta
know by now. :oops:
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
ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #17by ElChristou » 30.12.2007, 18:06

BobHegwood wrote:Well, maybe we're just not talking about the same feature? I
enjoy being able to see how fast one has to go in order to get to
a particular location even within the Solar System. Even at the
speed of light it takes a while to get to Mars. You understand
what I mean?


No... :lol: (kidding!)

Ok, we are talking about the same, but I never said to eliminate the display, just to eliminate it WHEN you don't move (Speed: 0.00000m/s)...

If you try Vincent's celx code you will see what I mean...

(For now I'm using it and I find it pretty cool...)
Image

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

Post #18by BobHegwood » 30.12.2007, 18:32

And I simply said that I liked the feature... :lol:
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

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #19by chris » 30.12.2007, 18:45

ElChristou wrote:
BobHegwood wrote:Well, maybe we're just not talking about the same feature? I
enjoy being able to see how fast one has to go in order to get to
a particular location even within the Solar System. Even at the
speed of light it takes a while to get to Mars. You understand
what I mean?

No... :lol: (kidding!)

Ok, we are talking about the same, but I never said to eliminate the display, just to eliminate it WHEN you don't move (Speed: 0.00000m/s)...

If you try Vincent's celx code you will see what I mean...

(For now I'm using it and I find it pretty cool...)


I agree that this is nice--it's good to have a clear visual indication when the observer is moving.

--Chris

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

Post #20by Vincent » 30.12.2007, 20:27

ElChristou wrote:If you try Vincent's celx code you will see what I mean...

(For now I'm using it and I find it pretty cool...)

Christophe,

I think you'll like the following version even more: the speed overlay element remains visible for 2 seconds before disapearing when speed is nil:

Code: Select all

-- Title: Toggle speed overlay element (tick event handling example)

celestia:setoverlayelements{Velocity = false}

t0 = 0

function handleSpeedTick()
   speed = math.abs(celestia:getobserver():getspeed())
   showSpeed = celestia:getoverlayelements().Velocity
   if (speed > 1e-12 and not(showSpeed)) then
      celestia:setoverlayelements{Velocity = true}
   end
   if speed <= 1e-12 and showSpeed then
      if t0 == 0 then
         t0 = celestia:getscripttime()
      elseif celestia:getscripttime() >= t0 + 2 then
         celestia:setoverlayelements{Velocity = false}
         t0 = 0
      end
   end
end

celestia:registereventhandler("tick", handleSpeedTick)
Last edited by Vincent on 31.12.2007, 00:02, edited 1 time in total.
@+
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


Return to “Development”