viewing in all directions

All about writing scripts for Celestia in Lua and the .cel system
Avatar
Topic author
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

viewing in all directions

Post #1by selden » 23.06.2007, 16:48

Maybe this should be in the Addons section? ;)

I've written a .CELX script which displays what can be seen in all six directions around the viewpoint.

It's by no means the best possible implementation, but at least it works!
The script asks you if it should display the surroundings using either 6 or 9 panes. 6 panes run faster, but 9 make it clearer which pane is displaying which viewpoint direction.

(This is an example of a script which needs to be able to specify which "view" is to be the "active" one. When splitting viewpanes, the active view is always the bottom-most, left-most pane. This script works best if the active view is the center pane.)

http://www.lepp.cornell.edu/~seb/celest ... 6view.celx

Here is how it looks with 9 panes and with the Celestial grid enabled (another option it asks you about) so you can verify it's doing the right thing.

Image
Selden

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #2by Cham » 23.06.2007, 16:59

OMG,

you're doing modern art, Selden !

When will you expose this to MoMa ? :P



By the way, do you notice the defect on the Celestial Grid coordinates, on the second line, last row ?
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

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

Post #3by selden » 23.06.2007, 17:07

Cham,

Yes, I discovered some numbers were missing from the grid just before you made your posting about that problem. I suspect the fix is relatively easy.
Selden

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

Post #4by selden » 23.06.2007, 17:10

This script could not have existed without the help provided by Vincent and Hank in other threads. Thanks, guys!
Selden

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #5by Cham » 23.06.2007, 17:11

And here's the alien probe which sees in all directions :

Image

:wink:
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"


Return to “Scripting”