How to put your own .3ds files into Celestia...

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
BakerA
Posts: 3
Joined: 09.04.2002
With us: 22 years 7 months
Location: United States

How to put your own .3ds files into Celestia...

Post #1by BakerA » 09.04.2002, 01:46

How would place a .3ds file into Celestia? Can I animate them along paths? How do I make sure they get the right textures?

*If the answers to these questions are in a text file somewhere, just tell me*

Thanks.

-BakerA
If it is not right do not do it; if it is not true do not say it. ~Marcus Aurelius

Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Post #2by Rassilon » 09.04.2002, 02:56

I just looked over your site...Nice work...I model a bit myself...

To answer your question, here is a sample taken from an ssc file...

"Name of Object" "Sun/Planet" << Or could simply be Planet...Replace with names of your choice...
{
Mesh "mymesh.3ds"
Texture "mytexture.jpg"
**[Note on texture mapping...Do the model WITHOUT a texture additive and map it using UWV in your Modifiers tab...I havent figured out how to remove a texture from an object so this could be a tricky task. But then applying the texture seems to work fine when saved as 3ds in the newer versions of Celestia...so it depends on the version your running]
Radius 83
EllipticalOrbit {
Period 95.829
SemiMajorAxis 94339
Eccentricity 0.2999
Inclination -01.18
MeanLongitude 754.568
}
RotationPeriod 12
Albedo 0.8
}

The additional values will affect its orbit, rotation and distance from the center of the planet it orbits...If its a planet its in kilometers...if its a star its in AUs...earth being 1 AU ~ 93 Million miles from the center of the sun...

Now for tilt and what not...Those values I will have to get back to you but I believe its the Obliquity value...

For rotation...I believe the model rotates on the Y axis...so face the top or bottom in that direction I do believe...

Material elements used in the model will consist of Opaque values only (This will make the object transparent like it does in MAX)...All others come out glossy no matter the Spectural or Glossiness values you set in MAX...So far I have found no others, but if you come across some...I would be interested in what those are ;)

Theres maybe more but that should get you started...
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

Topic author
BakerA
Posts: 3
Joined: 09.04.2002
With us: 22 years 7 months
Location: United States

Post #3by BakerA » 10.04.2002, 01:24

Hey Rassilon, what do you mean by "Do the model WITHOUT a texture additive"?

What if I was to import a ship or something that wasn't a planet or star or anything like that? Would I still use the same code to control it?

I just got Celestia a few days ago. I am new to it and will mess with code some more before I ask you a million questions. Thanks

-BakerA
If it is not right do not do it; if it is not true do not say it. ~Marcus Aurelius

Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Post #4by Rassilon » 10.04.2002, 01:42

BakerA wrote:Hey Rassilon, what do you mean by "Do the model WITHOUT a texture additive"?

What if I was to import a ship or something that wasn't a planet or star or anything like that? Would I still use the same code to control it?

I just got Celestia a few days ago. I am new to it and will mess with code some more before I ask you a million questions. Thanks

-BakerA


You know...dont worry about that if your using the newest version of Celestia...because you need not worry about how in the old version it would make the model glossy when applying a material to a mesh...

All meshes in 3ds format now have the glossy effect so it no longer matters if you apply the texture or not...

But you still need to use Texture "mytex.jpg" to get the texture to show up in Celestia...

Models use the same code as planets, yes...
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!

Topic author
BakerA
Posts: 3
Joined: 09.04.2002
With us: 22 years 7 months
Location: United States

Post #5by BakerA » 10.04.2002, 02:07

Allright. Thanks. So do you have a gallery somewhere online? :)
If it is not right do not do it; if it is not true do not say it. ~Marcus Aurelius

Rassilon
Posts: 1887
Joined: 29.01.2002
With us: 22 years 9 months
Location: Altair

Post #6by Rassilon » 10.04.2002, 02:57

BakerA wrote:Allright. Thanks. So do you have a gallery somewhere online? :)


Not yet...The current website of mine is solely mods for Star Trek Armada 2...I plan to update my website someday ;)
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!


Return to “Development”