Probable Noob question
Posted: 23.12.2007, 21:16
Why do we keep the LabelledStars entries in celestia.cfg?
Real-time 3D visualization of space
https://celestiaproject.space/forum/
https://celestiaproject.space/forum/viewtopic.php?f=4&t=11825
ElChristou wrote:Why do we keep the LabelledStars entries in celestia.cfg?
rthorvald wrote:So you can label your own stars...ElChristou wrote:Why do we keep the LabelledStars entries in celestia.cfg?
- rthorvald
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?)
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.
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?)
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)
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.
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?)
BobHegwood wrote:You don't follow me well?
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.
Vincent wrote:Chris,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.
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...
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.
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?
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?
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... (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...)
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...)
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)