It is currently Wed, 12-08-20, 8:54 GMT

All times are UTC

Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Thu, 09-02-12, 19:06 GMT 
Site Admin
User avatar

Joined: Fri, 31-08-07, 7:01 GMT
Posts: 4675
Location: Hamburg, Germany
For people being able to compile Celestia.1.6.x (SVN), I suggest a slight code modification in case Nick Risinger's Milky Way add-on is used. It sufficiently decreases the visibility of the default Milky Way display, such as to avoid any interferences with the used Milky Way add-on.

The modification only reduces the brightness of the default Milky Way display for observers INSIDE the boundary of our galaxy (e.g. within our solar system), where it is replaced by the respective MW add-on. If you do a GOTO Milky Way ('G' key) or generally look at the MW from 'outside', the default galaxy is visible again with the original brightness.

Here are the instructions:

Load the source code file src/celengine/render.cpp into your favored editor and jump to line 9626.
Replace the code line
   double enhance = 4.0, pc10 = 32.6167;


   // Reduce default Milky Way brightness as seen from 'inside',
   // in case a photo realistic Milky Way add-on is used as background!
   double enhance, pc10 = 32.6167;
   if(!strcmp(dsoDB->getDSOName(dso, false).c_str(),"Milky Way"))
      enhance = absMag - 15.0;
      enhance = 4.0;

Save and rebuild Celestia!

The quoted line number is for Celestia.SVN in latest Rev. 5185. For other versions, just search for the above line to be modified, using the search feature of your editor..

I could easily allow a modification of the Milky Way brightness ONLY in case
the MW add-on is actually present. Please, write if there is interest in such a more automatic behaviour.

Let me know whether this trivial mod is satisfactory to you.

Good luck,

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group