Probable Noob question
-
Topic authorElChristou
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
Re: Probable Noob question
ElChristou wrote:Why do we keep the LabelledStars entries in celestia.cfg?
So you can label your own stars...
- rthorvald
-
Topic authorElChristou
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
Re: Probable Noob question
rthorvald wrote:So you can label your own stars...ElChristou wrote:Why do we keep the LabelledStars entries in celestia.cfg?
- rthorvald
??
Wasn't the LabelledStars to label stars before the general implementation of stars' label?
- Hungry4info
- Posts: 1133
- Joined: 11.09.2005
- With us: 19 years 2 months
- Location: Indiana, United States
-
Topic authorElChristou
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
-
Topic authorElChristou
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
-
- Posts: 1803
- Joined: 12.10.2007
- With us: 17 years 1 month
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.
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
interesting to see the real time-scales necessary in order for us poor
slow-witted humans to notice changes in the Universe.
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
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 authorElChristou
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
-
- Developer
- Posts: 1356
- Joined: 07.01.2005
- With us: 19 years 10 months
- Location: Nancy, France
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...
@+
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
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 authorElChristou
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
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...
Perso I think that it could be removed, but perhaps I'm forgetting something, it's why I'm asking...
-
- Developer
- Posts: 1356
- Joined: 07.01.2005
- With us: 19 years 10 months
- Location: Nancy, France
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
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
-
- Posts: 1803
- Joined: 12.10.2007
- With us: 17 years 1 month
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?
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
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 authorElChristou
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
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?
-
Topic authorElChristou
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
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...
Oops, ok then, I'll give a go to see...
-
- Posts: 1803
- Joined: 12.10.2007
- With us: 17 years 1 month
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.
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
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 authorElChristou
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
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...)
-
- Posts: 1803
- Joined: 12.10.2007
- With us: 17 years 1 month
-
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 22 years 9 months
- Location: Seattle, Washington, USA
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...)
I agree that this is nice--it's good to have a clear visual indication when the observer is moving.
--Chris
-
- Developer
- Posts: 1356
- Joined: 07.01.2005
- With us: 19 years 10 months
- Location: Nancy, France
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
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