Dreaded Black Fog(Again)
I am setting up fog, seemingly correct, because on everything but my base terrain, things fade to the correct color. But, when the terrain gets fogged, it fades to black, regardless of the color set. Has anyone ever had this problem before? Anyone know what might be the problem? Lighting is on, Ambient is set, fog color is set, material is set... I just cant figure this one out. I would be very grateful for any input.
Z.
Fading to black seems to occur when you enable AlphaBlending. Try turning it off and see if it works.
In my application, fog is still enabled even though I didn''t enable alpha blend, so I don''t think that would affect the fog not being displayed as well.
Are you using Pixel Fog or Vertex Fog? I''ve only been using Vertex Fog, and I tested it out before that AlphaBlending enabled would create the black fog.
Are you using Pixel Fog or Vertex Fog? I''ve only been using Vertex Fog, and I tested it out before that AlphaBlending enabled would create the black fog.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement