About constellations

General discussion about Celestia that doesn't fit into other forums.
Topic author
ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

About constellations

Post #1by ElChristou » 23.12.2005, 20:23

Hi guys,

I wondering about having the constellations lines semi transparent like in pict 2. I think the interest is pretty obvious...

Image

Is this possible or not?

Now to stay in the topic, just an idea for script writers:

What about a script in which we could:
1- select a constellation
2- display the names of all stars participating in the construction of the constellation figure

Is such a script (if possible) of any interest?
Image

Boux
Posts: 435
Joined: 25.08.2004
With us: 20 years 3 months
Location: Brittany, close to the Ocean

Post #2by Boux » 25.12.2005, 10:06

You are right. With pointstars rendering which I prefer because it is clean and crisp, many stars are hidden behind the constellation outline.
Colors and transparency are hardwired in the code.
As I believe that you know how to build your own executable, here is the trick.
Open the "render.ccp" source file.
Look for the block which processes asterisms/constellations

Code: Select all

    // Render asterisms
    if ((renderFlags & ShowDiagrams) != 0 && universe.getAsterisms() != NULL)
    {
        glColor4f(0.28f, 0.0f, 0.66f, 0.96f);


change the glColor string into:

Code: Select all

        glColor4f(0.28f, 0.0f, 0.75f, 0.50f); // red, green, blue, alpha

The new figures make the lines more transparent (alpha). I put some more blue to compensate for the resultant lower contrast.
Save and build.
Here is the result:
Image

Topic author
ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #3by ElChristou » 25.12.2005, 10:52

Many Tx Boux, indeed pretty easy to do!!

Dev team? should this little change could be done in the code for further versions?
Image

Brendan
Posts: 296
Joined: 15.07.2003
With us: 21 years 4 months
Location: Bellows Falls, VT
Contact:

Post #4by Brendan » 31.12.2005, 05:57

How about making the OpenGL colors for constellation lines, constellation boundaries and coordinate grid settings in celestia.cfg? I tried that before and might try getting that to work if I could figure out how to make makefiles to compile with mingw. I tried the Microsoft compiler on my new amd 64 system and the linker gave errors about it being on an amd 64 system.


Return to “Celestia Users”