Enable / Disable Nebulae

All about writing scripts for Celestia in Lua and the .cel system
Topic author
BerndS
Posts: 5
Joined: 02.05.2007
With us: 17 years 6 months

Enable / Disable Nebulae

Post #1by BerndS » 02.05.2007, 22:54

:?: WHo knows how to switch of / on nebulae with celx?
You can do it with galaxies, planets and so on - but not with nebulae. Is this correct?

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: Enable / Disable Nebulae

Post #2by Vincent » 03.05.2007, 10:24

BerndS wrote::?: WHo knows how to switch of / on nebulae with celx?
You can do it with galaxies, planets and so on - but not with nebulae. Is this correct?

You can enable/disable the rendering of nebulae with:

Code: Select all

celestia:setrenderflags{nebulae = true} -- enable
celestia:setrenderflags{nebulae = false} --disable

This has not been added to Harald Schmidt 's support for Lua/CELX-scripting in Celestia, though.

The following renderflags are currently available (see celx.cpp, line 107):
orbits
cloudmaps
constellations
galaxies
planets
stars
nightmaps
eclipseshadows
ringshadows
comettails
boundaries
markers
automag
atmospheres
grid
smoothlines
partialtrajectories
nebulae
openclusters
cloudshadows
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Topic author
BerndS
Posts: 5
Joined: 02.05.2007
With us: 17 years 6 months

Post #3by BerndS » 03.05.2007, 17:00

Hi Vincent!

Thanks - but that's what I tried before and it didn't work (Celestia 1.4.1). And it still doesn't work with nebulae. Any further ideas?

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #4by Vincent » 03.05.2007, 20:03

BerndS wrote:Hi Vincent!

Thanks - but that's what I tried before and it didn't work (Celestia 1.4.1). And it still doesn't work with nebulae. Any further ideas?

Sorry, the nebulae renderflag has been indeed added after the release of Celestia 1.4.1. So, I can simply suggest you to wait for the release of Celestia 1.5, or to download Celestia1.5pre2.

Then, a turn-around would be to declare your nebula as a very faint galaxy with a high AbsMag value...
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3


Return to “Scripting”