Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Cyborg17 on October 06, 2011, 10:50:40 am

Title: Feature Request: Changeable Nebula Fog Color
Post by: Cyborg17 on October 06, 2011, 10:50:40 am
Hey guys.  I've seen a lot of awesome work being done on the code lately, and you guys are awesome for doing it. :yes:

  Because of the implementation of Fog distance multipliers, I decided to start playing with nebula maps and I made a couple of my own.  The problem is, even if I can control the fog multiplier, if I wanted to make a very dense nebula, one that would let in only a small fraction of light, it would be difficult to pull off because the only color that my fog will be is a blue instead of a black, or a red. 

So, if I made a very dark red and black nebula (whose poofs are highly transparent), and used a black skybox without changing the multiplier, the game will show the ships being hidden by blue fog (at least that color on my computer), completely ruining the effect.  But if I combine it with a very high fog multiplier, the ships will simply be visible as far as they are for non-nebula maps, which challenges the idea that you're even in a nebula, much less a dense one.

I've searched around for a solution a few times and I haven't come up with any mentions of changing nebula fog color.  So I'm making a request for a fog color change option.

I know it doesn't sound impressive or important, but if you think about it, it's a pretty noticeable limitation on the engine.  If this change were implemented, I would use it in a WIP campaign of mine.  I hope it's not too complicated a request.

On the other hand, if the feature already exists or can be hacked in some way already, just tell me how, and I'll actually edit it into the wiki somewhere so that it's easier to find.

tl;dr version:

I don't know if fog color is changeable. Let me know if it is. I'm requesting it if it isn't.
Title: Re: Feature Request: Changeable Nebula Fog Color
Post by: Nighteyes on October 07, 2011, 05:37:31 am
I'm pretty sure the fog color is changeable, IIRC its tied to the ambient light color, but I could be mistaking...
Title: Re: Feature Request: Changeable Nebula Fog Color
Post by: headdie on October 07, 2011, 07:18:04 am
It's been a while since i looked at the nebula but iirc you can change the colour by selecting image files that create 2D objects simulating the fog but it is not a very varied if you dont want to go into creating new files
Title: Re: Feature Request: Changeable Nebula Fog Color
Post by: Aardwolf on October 07, 2011, 02:59:17 pm
No, there's definitely real fog with its own color, in addition to the poofs.
Title: Re: Feature Request: Changeable Nebula Fog Color
Post by: Cyborg17 on October 09, 2011, 12:48:05 am
I'm pretty sure the fog color is changeable, IIRC its tied to the ambient light color, but I could be mistaking...

It's not tied to ambient light color. I just checked.  I tried having it set to red, but it remained blue.  Same with green. 255, 1, 1 and 1, 255, 1 each time.
Title: Re: Feature Request: Changeable Nebula Fog Color
Post by: Zacam on October 09, 2011, 02:06:19 am

Are you sure the sun set for the mission isn't blue?

There is the ambient background for a nebula, and then there is the poofs and both of those are interacted upon by the sun color. AFAIK. It's been a while since I messed with nebula setting.s
Title: Re: Feature Request: Changeable Nebula Fog Color
Post by: Cyborg17 on October 13, 2011, 08:50:36 pm
Ok, so I tested a bunch of different suns that should have given different color values.  They all basically look like this:

(http://i1137.photobucket.com/albums/n502/drker2000/fogscreen.png)

I used a skybox and changed the table file to mis-read the poof textures in order to see the fog clearly.  I've attached a zip which contains all the screenshots I made, and a workable "mod" with the settings set to the ones I used so you can test under the same circumstances.  There should be five or so different missions labeled "nebtests[suncolor]".

[attachment deleted by ninja]