Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Ant577668758
11
Years of Service
User Offline
Joined: 11th Dec 2013
Location:
Posted: 11th Dec 2013 19:37
Hi everyone
I'm making a game that uses a matrix for terrain
then I want to show fog of different colors on that terrain
but I always get black fog

I use:
fog on
fog color

I don't know why is this happening

any clue?

Thanks for reading
HELP!

---
Ant
---
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 12th Dec 2013 13:08
What are you setting the fog color to? You need to pass it a colour value, such as fog color rgb(255,0,0) (red fog).

Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Dec 2013 15:45
No, you can do it his way as well if you want - and it should work so the problem is probably in the code that he hasn't shown us.



Powered by Free Banners

Login to post a reply

Server time is: 2025-05-17 07:12:58
Your offset time is: 2025-05-17 07:12:58