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
-
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.
-
I'm pretty sure the fog color is changeable, IIRC its tied to the ambient light color, but I could be mistaking...
-
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
-
No, there's definitely real fog with its own color, in addition to the poofs.
-
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.
-
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
-
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]