Page 1 of 2

i need a new object type

Posted: 18.06.2010, 16:34
by freiza667
i need a Trans-Neptunian object in orbits and labels

relly look at sedna is not a Asteroid

is a Trans-Neptunian object

in view options

help plz

Re: i need a new object type

Posted: 18.06.2010, 17:51
by ajtribick
Well I guess Celestia's "asteroid" class really corresponds better to "Small Solar System bodies", so no harm in using it for TNOs.

Problem is that a TNO class doesn't really make sense except in the one solar system in the universe that actually contains Neptune, as opposed to other object classes in Celestia could be fairly easily generalised to other solar systems (even if we do not yet know of any such objects in other solar systems yet).

Re: i need a new object type

Posted: 18.06.2010, 21:19
by freiza667
what file to add Trans-Neptunian object in orbits and labels?

Re: i need a new object type

Posted: 18.06.2010, 22:55
by selden
You would have to edit the source code and recompile.

Re: i need a new object type

Posted: 18.06.2010, 23:00
by freiza667
ya i no but how u add the new object in orbits and labels in view options?

Re: i need a new object type

Posted: 20.06.2010, 05:51
by Hungry4info
You can open the .ssc files in the /data directory to get an idea how to do it. Copy one definition and paste it and edit the values.

Re: i need a new object type

Posted: 27.06.2010, 00:01
by freiza667
what .ssc file?

Re: i need a new object type

Posted: 27.06.2010, 00:03
by freiza667
i relle cant fine what ur thaking abot

Re: i need a new object type

Posted: 27.06.2010, 02:44
by Hungry4info
Say, for example, if I wanted to make an asteroid:

Code: Select all

"billy" "Sol"
{
  Texture "billy.*"
  Radius 3.14159
  Class "asteroid"   <---  Right there

  EllipticalOrbit
  {
   ...
  }
}


You would do this in whatever .ssc file you declare the object.

Like if I wanted Mercury to be an asteroid, I would open solarsys.ssc and add

Code: Select all

Class "asteroid"
to it.

Re: i need a new object type

Posted: 27.06.2010, 06:23
by freiza667
not that i want

and a new type like ...

celestia_160rc1_rvof.PNG


how i add a new type of objet

Re: i need a new object type

Posted: 27.06.2010, 08:25
by Hungry4info
Then selden already answered your question...
selden wrote:You would have to edit the source code and recompile.

Re: i need a new object type

Posted: 27.06.2010, 19:30
by freiza667
and were is source code and recompile i cant find teme

Re: i need a new object type

Posted: 27.06.2010, 20:57
by Hungry4info
The celestia.exe file itself if I'm not mistaken contains the relevant source code. You'll need to have knowledge of and experience with programming in C++ to accomplish what you want.

Editing and compiling the code can probably be done with the use of a C++ editor/compiler programme.

Re: i need a new object type

Posted: 28.06.2010, 00:14
by freiza667
were u get C++ ?

Re: i need a new object type

Posted: 28.06.2010, 01:18
by Hungry4info
You already have C++ in your computer.

It's like a language that computers use. The programmes talk to each other in C++. If you want to modify Celestia, you have to learn the language, this can take a year if you've never learned a programming language before.

I don't know any good C++ compilers/editors but you can search one on the internet.

Re: i need a new object type

Posted: 28.06.2010, 02:46
by freiza667
and were is my C++

and what u do wite it?

Re: i need a new object type

Posted: 28.06.2010, 05:47
by Hungry4info
Your C++ is in your computer. It's hard to find if you don't know how and where to look.

You can download the source code from here:
http://www.celestiaproject.net/celestia/download.html

Here's an example of C++ in the source code. You know that file you double-click to make Celestia run? This stuff is in that file. Files are a bunch of code just like this. This is what the computer is thinking when it runs Celestia. You'll have to both know how this kind of stuff works, and be able to make some of your own, to get the desired effect.

Code: Select all

if (detail > 1)
{
  overlay << _("Surface temp: ") << SigDigitNum(star.getTemperature(), 3) << " K\n";
  float solarRadii = star.getRadius() / 6.96e5f;
  overlay << _("Radius: ");
  if (solarRadii > 0.01f)
  {
     overlay << SigDigitNum(star.getRadius() / 696000.0f, 2) << " " << _("Rsun")
     << "  (" << SigDigitNum(star.getRadius(), 3) << " km" << ")\n";
  }
  else
  {
     overlay << SigDigitNum(star.getRadius(), 3) << " km\n";
  }
  if (star.getRotationModel()->isPeriodic())
  {
     overlay << _("Rotation period: ");
     float period = (float) star.getRotationModel()->getPeriod();
     displayDuration(overlay, period);
     overlay << '\n';
  }
}

Re: i need a new object type

Posted: 28.06.2010, 11:37
by selden
Hungry,

I'm sorry, but you are seriously misleading freiza. Apparently you have never built Celestia from sourcecode yourself.

Freiza,

Instructions for compiling Celestia for Windows are in the Celestia Wikibook.
See http://en.wikibooks.org/wiki/Celestia/D ... 2_platform
Unfortunately, the instructions are for Windows XP. Nobody has written instructions for Vista or Win7.

The sourcecode must be downloaded from SourceForge
The Windows C++ compiler and libraries must be downloaded from Microsoft.
They're all free, but very large.

Re: i need a new object type

Posted: 28.06.2010, 13:39
by Hungry4info
selden wrote:Apparently you have never built Celestia from sourcecode yourself.

Indeed! I'm glad you chimed in with a much better informed post :lol:

Re: i need a new object type

Posted: 28.06.2010, 16:18
by rilett33
Hi,

what is this joke?

Do you seriously advise the users to make their own version of Celestia?

Or is this a new way to make fun of people who ask for help?