How to define Nebulae in SSC file

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
rian4me
Posts: 7
Joined: 25.11.2009
With us: 15 years 2 months

How to define Nebulae in SSC file

Post #1by rian4me » 13.12.2009, 15:57

Is there a way to define a class Nebula in a SSC file
I know you can put a nebula around a star using the SSC but do you really need DSC always to define nebula.

My problem is that i have lot of Nebulae addons installed which all come with the DSC files and these get loaded on startup
thus hogging memory and slowing celestia down, if its an SSC it will load only when needed right?

SO is there any bypass for this..to keep the nebulae..yet not to have them auto loaded at startup.

Also please tell me if there are any addons for rendering better quality Milky way with labeled arms.

------------------------------------
Celestia 1.6.0
Win XP SP2
1.5 GB Ram
2.66Ghz Intel Dual Core

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

Re: How to define Nebulae in SSC file

Post #2by selden » 13.12.2009, 18:43

All models and textures are loaded into memory the first time they come into view. If they're behind the viewpoint, they don't get loaded.

SSC models and textures can be preloaded, but DSC cannot.
Objects in SSC files are not drawn if the viewpoint is more than a few LY from the star.
Selden

Topic author
rian4me
Posts: 7
Joined: 25.11.2009
With us: 15 years 2 months

Re: How to define Nebulae in SSC file

Post #3by rian4me » 18.12.2009, 23:42

Thanks,

But are you saying that having too many nebulae in my extras folder is not the reason why celestia is slowing down
I tried with and without my big nebulae folder and the difference in rendering of objects waS quite significant..especially wen looking at the milky way from whole galaxy perspective and then trying to move it about the screen..It was much easier on my processor to move the Milky way without my nebulae folder, even though i had not visited a single nebula.

What could then be the reason for this..any idea?

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 1 month
Location: Montreal

Re: How to define Nebulae in SSC file

Post #4by Cham » 19.12.2009, 02:25

The best way is to define the nebula as an invisible layer, that you turn ON/OFF with a CELX toggle script. This is the systematic way I adopted, and I now have TONS of large hires nebulae in my Celestia universe, without any impact on the frame rate. I made a special sub-menu, in the scripts menu, just for the nebulae. For many examples, just check the nebulae that I published there :

viewtopic.php?f=23&t=15543
"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
fsgregs
Posts: 1307
Joined: 07.10.2002
With us: 22 years 4 months
Location: Manassas, VA

Re: How to define Nebulae in SSC file

Post #5by fsgregs » 31.12.2009, 17:35

Cham's method is good but there are other ways around this if you don't know how to write toggle scripts. The Milky Way is defined as a galaxy, so you can turn Nebula off as the default setting when Celestia first loads. The Milky Way and all galaxies will still load.

To load Celestia without nebula being active, simply uncheck the nebula box in the Render menu, then close Celestia. When you reopen it, the program should remember that nebula was unchecked, and it will not load any nebula extras.

You can also be certain that nebula do not load on startup by instructing Celestia not to turn on nebula when it boots, by adding one line to the "start.cel" file in the Celestia root folder. To do so, right-click on that file and "open with" Wordpad, or some other text editor. Once the file is open, locate the text section that says,

# Items to be displayed (rendered):
# Do NOT render the following objects (UNcomment to suit your needs)...
# renderflags {clear "atmospheres"}
# renderflags {clear "automag"}
# renderflags {clear "boundaries"}
# renderflags {clear "cloudmaps"}
# renderflags {clear "comettails"}
Add this line to that section:
renderflags {clear "nebulae"}

Save the file.

Then, Celestia will never boot up with nebula active, until you turn nebula on with the render menu.

A third way to do this is to separate your nebula files into two extras folders. One folder contains the nebula you do want to see, and the other contains the nebula you do not want to see. Call it "extras2".

When you want to see both sets of those nebula, simply edit one line in the "celestia.cfg" file that you can find in the main directory. That line is:

ExtrasDirectories [ "extras" ]

Change it to ExtrasDirectories [ "extras" "extras2"], save the file, and Celestia will load up both extras folders when it boots. A simple way to do this fast, is to have both lines in the config file, and simply comment out the line you want. For example,

#ExtrasDirectories [ "extras" ]
ExtrasDirectories [ "extras" "extras2"]


Hope this helps

Frank


Return to “Help Central”