Just a quick note here concerning planets with retrograde rotations...
I have been playing with a revised Venus Tour, and I have noticed that when I use the CEL GOTO command, Venus remains oriented as it should.
It used to be that this function would cause the planet to be displayed upside-down. In other words, Venus would be rotating in the wrong direction.
It seems that Chris has repaired this particular bug now, and I'd just like to say "Thanks" for that.
Now though, it seems as if the same problem has not been repaired when using a GOTOLONGLAT command in a CEL script. If I get to Venus via GOTO, and then try to get
to a particular location using the GOTOLONGLAT command, Venus again turns itself upside-down. Am I stating this correctly here?
Is this another fix needed? Or, should I just live with it?
Thanks, Bob
Orientation Again
-
Topic authorBobHegwood
- Posts: 1803
- Joined: 12.10.2007
- With us: 17 years 1 month
Orientation Again
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 authorBobHegwood
- Posts: 1803
- Joined: 12.10.2007
- With us: 17 years 1 month
Re: Orientation Again
Here's a quick test script which you can use to see what I mean here...
Thanks, Bob
Code: Select all
{
select {object "Sol/Venus"}
center {time 5.0}
wait {duration 5.0}
goto {time 5.0 distance 5.0}
wait {duration 5.0}
follow {}
print {text "Welcome to Venus!" row -4 column 1 duration 5.0}
wait {duration 7.0}
renderflags {clear "cloudmaps"}
gotolonglat {time 5.0 distance 3.0 longitude -135.0 latitude 35.0}
wait {duration 5.0}
print {text "Now I'm upside-down!" row -4 column 1 duration 5.0}
wait {duration 7.0}
}
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
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 authorBobHegwood
- Posts: 1803
- Joined: 12.10.2007
- With us: 17 years 1 month
Re: Orientation Again
No one knows what's going on here?
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
Re: Orientation Again
If you care about the orientation of the viewpoint, you probably should consider including an "up" argument for goto or gotolonglat, which specifies the direction of the "up vector" for the goto's viewpoint.
My guess is that the following may produce the result you seem to want:
up vector (default vector = [ 0 1 0 ])
My guess is that the following may produce the result you seem to want:
Code: Select all
gotolonglat {time 5.0 distance 3.0 longitude -135.0 latitude 35.0 up [0 -1 0] }
Selden
-
Topic authorBobHegwood
- Posts: 1803
- Joined: 12.10.2007
- With us: 17 years 1 month
Re: Orientation Again
selden wrote:If you care about the orientation of the viewpoint, you probably should consider including an "up" argument for goto or gotolonglat, which specifies the direction of the "up vector" for the goto's viewpoint.up vector (default vector = [ 0 1 0 ])
My guess is that the following may produce the result you seem to want:Code: Select all
gotolonglat {time 5.0 distance 3.0 longitude -135.0 latitude 35.0 up [0 -1 0] }
As always, thanks very much Selden.
Had no idea that this was even an option. Where can I keep up with changes like this?
I have never had to do this on any other planet either, so my confusion was caused by ignorance on my part I guess.
The default GOTO behavior is is not a bug?
Was this change made when Chris fixed the original GOTO problem?
Thanks again, 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
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
Re: Orientation Again
Bob,
I dunno if or when Chris might have made any change in the default up vector. Sorry.
I dunno if or when Chris might have made any change in the default up vector. Sorry.
Selden
-
Topic authorBobHegwood
- Posts: 1803
- Joined: 12.10.2007
- With us: 17 years 1 month
Re: Orientation Again
selden wrote:Bob,
I dunno if or when Chris might have made any change in the default up vector. Sorry.
Nope, my fault as usual...
I apologize, but I simply did not know that this capability even existed in Celestia's CEL scripting now.
Obviously, the scripting guides need to be updated. <sigh>
Again, thanks VERY much for this information. Your solution works perfectly.
Many thanks to Chris for the changes too. This is great!
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
- Adirondack
- Posts: 528
- Joined: 01.03.2004
- With us: 20 years 8 months
Re: Orientation Again
Bob,BobHegwood wrote:I apologize, but I simply did not know that this capability even existed in Celestia's CEL scripting now.
Obviously, the scripting guides need to be updated. <sigh>
the 'up' directive is not new!
I do know it at least since 1.3 ...
Take a look in Don's scripting guide ('goto' = page 25 & 'gotolonglat' = page 30) and then you will look
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)
The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)
-
Topic authorBobHegwood
- Posts: 1803
- Joined: 12.10.2007
- With us: 17 years 1 month
Re: Orientation Again
Well, I'll be damned...Adirondack wrote:the 'up' directive is not new!
I do know it at least since 1.3 ...
Take a look in Don's scripting guide ('goto' = page 25 & 'gotolonglat' = page 30) and then you will look
Adirondack
Okay, so now you know why I'm Brain-Dead I guess. Apparently, I never had any need for it, or no one ever understood what I meant
by Venus being "upside-down." Only Selden can understand this Bozo I guess.
That's alright though. It only took me four years to figure it out.
EDIT:
By the way, something WAS done for Venus and the approach to it via GOTO, because even this command used to cause Venus to be displayed upside-down
once you arrived at the planet. That's why my old script used the orbit function to re-right the planet prior to starting the tour. Just FYI...
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