Assorted questions, mostly about models/textures and orbits

General discussion about Celestia that doesn't fit into other forums.
Topic author
straight
Posts: 29
Joined: 07.05.2002
With us: 22 years 1 month

Assorted questions, mostly about models/textures and orbits

Post #1by straight » 20.04.2004, 16:00

Is there a option for alternate textures with stars? Or is there a way to get the star textures to change resolution when you change resolution with r/R? (I have a nice pretty gstar texture, but it's too big for everyday use--I get a hiccup every time the Sun comes into view).

Does anyone have a working link to the Stonehenge model?

How do I get something to orbit in the opposite direction?

Has anyone figured out how to write a script so that you go to a moon/satellite then orbit it until the planet is centered in view behind it?

How can I make a spacecraft orbit so that it is always facing in the direction it is moving (for instance, I'd like to put some Tie Fighters in orbit around a Star Destroyer and make it look like they're flying rather than tumbling). Anyone have a reference that would explain how the Orientation and RotationOffset commands work?

Is it possible to change which textures a model uses? Some models come with textures and some don't, is it possible to add textures to a model?

Some of the spacecraft models I have don't use the textures they came with, they're just plain, blinding white. Even when I've re-sized the textures to fit my video card. Sometimes a model that used to have textures suddenly doesn't. Any idea what could be causing that?

Does changing the size of an object change how it uses textures? When I scaled the Millenium Falcon down to actual size from the default it came with, some of the textures disappeared, I think.

Avatar
selden
Developer
Posts: 10190
Joined: 04.09.2002
With us: 21 years 10 months
Location: NY, USA

Re: Assorted questions, mostly about models/textures and orb

Post #2by selden » 20.04.2004, 17:38

straight wrote:Is there a option for alternate textures with stars? Or is there a way to get the star textures to change resolution when you change resolution with r/R? (I have a nice pretty gstar texture, but it's too big for everyday use--I get a hiccup every time the Sun comes into view).

not yet

Does anyone have a working link to the Stonehenge model?
it seems to have evaporated from GeoCities. :( Hopefully Jestr will find a home for it soon.

How do I get something to orbit in the opposite direction?
add 180 degrees to the inclination

Has anyone figured out how to write a script so that you go to a moon/satellite then orbit it until the planet is centered in view behind it?
invoke the same routine that the command "C" uses ;) I dunno if it's been implemented yet. Hopefully DonG. knows

How can I make a spacecraft orbit so that it is always facing in the direction it is moving (for instance, I'd like to put some Tie Fighters in orbit around a Star Destroyer and make it look like they're flying rather than tumbling). Anyone have a reference that would explain how the Orientation and RotationOffset commands work?
For a circular orbit, you can just set its RotationPeriod to be its orbital Period/24. I think Grant Hutchison wrote about the object orientation directives in a posting some time ago. Use the forum Search page.

Is it possible to change which textures a model uses? Some models come with textures and some don't, is it possible to add textures to a model?
You have to edit the 3DS model file, either directly with a binary editor or Emacs (to change the names of textures that already are defined), or with a 3D modelling program (to apply new textures to different parts of the model). Many people here use Anim8or.

Some of the spacecraft models I have don't use the textures they came with, they're just plain, blinding white. Even when I've re-sized the textures to fit my video card. Sometimes a model that used to have textures suddenly doesn't. Any idea what could be causing that?
There are lots of possible causes. See http://www.lns.cornell.edu/~seb/celestia/addon-intro.html#6 for some of them.

Does changing the size of an object change how it uses textures?
no
When I scaled the Millenium Falcon down to actual size from the default it came with, some of the textures disappeared, I think.
It could be that it wasn't displaying textures properly to begin with (see above). Changing its scale might have caused you to look at it from a different direction so it picket up a different surface texture image file.
Selden

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

Post #3by Cham » 20.04.2004, 17:47

To make an object rotate in the reverse sense, you could just put a sign in front of the RotationPeriod number. Easy.
"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!"

Guest

Post #4by Guest » 20.04.2004, 18:02

Thank you for the help! Selden, your Celestia webpages are fantastic and have already helped me quite a bit. Somehow I'd skipped over your intro to add-ons. Thanks for sharing all that info with everyone.

Here is the URL for the thread about Object Orientation, in case anyone else is interested (boy, did I guess wrong about what the four numbers did, no wonder I couldn't figure it out--clearly my cerebellum did not evolve in free fall).

I hope the Implementors add a command that will orbit the currently followed object until centered on some other object. That would be cool.

Is there a "command line" function that lets you type scripting commands in and have Celestia execute them immediately?

don
Posts: 1709
Joined: 12.07.2003
With us: 20 years 11 months
Location: Colorado, USA (7000 ft)

Post #5by don » 20.04.2004, 20:07

Selden, thanks for your vote of confidence, but I'm not very good at scripting orbital stuff yet. I'm sure there are some who are though, like DoS -- if he is looking here. Or maybe folks could look at one or more of DoS's scripts in the Scripting forum, and figure it out that way.

Is there a "command line" function that lets you type scripting commands in and have Celestia execute them immediately?

Yes, Harald Schmidt wrote a script called "luaconsole". The topic for it is here: http://shatters.net/forum/viewtopic.php?t=4280. This script allows you to enter Celx commands (not Cel) and have them executed immediately.
-Don G.
My Celestia Scripting Resources page

Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

Harry
Posts: 559
Joined: 05.09.2003
With us: 20 years 10 months
Location: Germany

Re: Assorted questions, mostly about models/textures and orb

Post #6by Harry » 20.04.2004, 22:47

selden wrote:
Has anyone figured out how to write a script so that you go to a moon/satellite then orbit it until the planet is centered in view behind it?
invoke the same routine that the command "C" uses ;) I dunno if it's been implemented yet. Hopefully DonG. knows

Chris implemented this in CELX as:

Code: Select all

observer:centerorbit(object target [, number duration])

It's in CVS since mid february, so any 1.3.2pre since then should have it.

Unfortunately my docs aren't up to date (and as a result Don's aren't too)... I guess I have to update them Real Soon Now ;)

Harald

don
Posts: 1709
Joined: 12.07.2003
With us: 20 years 11 months
Location: Colorado, USA (7000 ft)

Post #7by don » 20.04.2004, 23:36

Thanks Harald. You've been holding out on us! 8O

Do you have a list of new Celx methods that I can at least search the source code for, write a test script, and then add to my RTF file? Or should I just browse the celx.cpp source file?

Thanks again.
-Don G.

My Celestia Scripting Resources page



Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

jestr
Posts: 612
Joined: 14.09.2003
With us: 20 years 9 months
Location: Bridgwater,UK

Post #8by jestr » 21.04.2004, 00:33

Hi Straight,you can find 2 different versions of Stonehenge here
http://jestraddons.250free.com/
Version 1 is for older versions of Celestia and version 2 is for Celestia 1.3.2 pre 6 or higher.They are the same model just ssc is different,hope you like it,it is best with my level10 Earth texture(level10 for south britain that is not the whole Earth)but my FTP is not working at the moment I think you may be able to get it from Psykotiks excellent website though.Jestr

Topic author
straight
Posts: 29
Joined: 07.05.2002
With us: 22 years 1 month

Post #9by straight » 21.04.2004, 03:31

Wow, thanks, Jestr! Those moon models and textures you've made are spectacular.

Are the brighter colors artistic license, or are they based on actual photos?

jestr
Posts: 612
Joined: 14.09.2003
With us: 20 years 9 months
Location: Bridgwater,UK

Post #10by jestr » 21.04.2004, 09:28

Artistic license ,Jestr


Return to “Celestia Users”