Hi guys,
I wondering about having the constellations lines semi transparent like in pict 2. I think the interest is pretty obvious...
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?
About constellations
-
Topic authorElChristou
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
-
- Posts: 435
- Joined: 25.08.2004
- With us: 20 years 3 months
- Location: Brittany, close to the Ocean
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
change the glColor string into:
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:
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:
-
Topic authorElChristou
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
-
- Posts: 296
- Joined: 15.07.2003
- With us: 21 years 4 months
- Location: Bellows Falls, VT
- Contact:
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.