i need a new object type

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
freiza667
Posts: 59
Joined: 14.03.2010
With us: 14 years 8 months

i need a new object type

Post #1by freiza667 » 18.06.2010, 16:34

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

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Re: i need a new object type

Post #2by ajtribick » 18.06.2010, 17:51

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).

Topic author
freiza667
Posts: 59
Joined: 14.03.2010
With us: 14 years 8 months

Re: i need a new object type

Post #3by freiza667 » 18.06.2010, 21:19

what file to add Trans-Neptunian object in orbits and labels?

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

Re: i need a new object type

Post #4by selden » 18.06.2010, 22:55

You would have to edit the source code and recompile.
Selden

Topic author
freiza667
Posts: 59
Joined: 14.03.2010
With us: 14 years 8 months

Re: i need a new object type

Post #5by freiza667 » 18.06.2010, 23:00

ya i no but how u add the new object in orbits and labels in view options?

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 2 months
Location: Indiana, United States

Re: i need a new object type

Post #6by Hungry4info » 20.06.2010, 05:51

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.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

Topic author
freiza667
Posts: 59
Joined: 14.03.2010
With us: 14 years 8 months

Re: i need a new object type

Post #7by freiza667 » 27.06.2010, 00:01

what .ssc file?

Topic author
freiza667
Posts: 59
Joined: 14.03.2010
With us: 14 years 8 months

Re: i need a new object type

Post #8by freiza667 » 27.06.2010, 00:03

i relle cant fine what ur thaking abot

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 2 months
Location: Indiana, United States

Re: i need a new object type

Post #9by Hungry4info » 27.06.2010, 02:44

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.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

Topic author
freiza667
Posts: 59
Joined: 14.03.2010
With us: 14 years 8 months

Re: i need a new object type

Post #10by freiza667 » 27.06.2010, 06:23

not that i want

and a new type like ...

celestia_160rc1_rvof.PNG


how i add a new type of objet

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 2 months
Location: Indiana, United States

Re: i need a new object type

Post #11by Hungry4info » 27.06.2010, 08:25

Then selden already answered your question...
selden wrote:You would have to edit the source code and recompile.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

Topic author
freiza667
Posts: 59
Joined: 14.03.2010
With us: 14 years 8 months

Re: i need a new object type

Post #12by freiza667 » 27.06.2010, 19:30

and were is source code and recompile i cant find teme

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 2 months
Location: Indiana, United States

Re: i need a new object type

Post #13by Hungry4info » 27.06.2010, 20:57

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.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

Topic author
freiza667
Posts: 59
Joined: 14.03.2010
With us: 14 years 8 months

Re: i need a new object type

Post #14by freiza667 » 28.06.2010, 00:14

were u get C++ ?

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 2 months
Location: Indiana, United States

Re: i need a new object type

Post #15by Hungry4info » 28.06.2010, 01:18

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.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

Topic author
freiza667
Posts: 59
Joined: 14.03.2010
With us: 14 years 8 months

Re: i need a new object type

Post #16by freiza667 » 28.06.2010, 02:46

and were is my C++

and what u do wite it?

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 2 months
Location: Indiana, United States

Re: i need a new object type

Post #17by Hungry4info » 28.06.2010, 05:47

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';
  }
}
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

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

Re: i need a new object type

Post #18by selden » 28.06.2010, 11:37

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.
Selden

Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 2 months
Location: Indiana, United States

Re: i need a new object type

Post #19by Hungry4info » 28.06.2010, 13:39

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:
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

rilett33
Posts: 9
Joined: 01.01.2010
With us: 14 years 10 months

Re: i need a new object type

Post #20by rilett33 » 28.06.2010, 16:18

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?


Return to “Help Central”