Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


How do you control your environnment colour ?

This topic is 5996 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I wonder how you control environnment colour such sun, sea, fog light colour etc etc as time pass My world sky, sea and sun object are controled by material (the terrain is lighted by d3d&normal) When sun rise or fall I must have nice colour change and I think more than controlling the colour with hard coding (eg: 255-time,255-time/whatewer,255+time/hurgh&blurg) To make an image with nice gradient of colour then grab on it the needed colour. saving&loading the structure containing those data will be done simply so one don''t need the image appart if a change is needed. (eg: if(existimageGradient()) { loadImageAndGrabGradient(); SaveGradientStructure(); } else LoadGradientStructure(); The avantage is that you have a visual control of the color change and changing gradient if ya don''t like can be done in a snap with photoshop for example. Also doing it programmatically would be complicated while I have also wheater color change (storm=darker)and there is a lot of object to colorize that will act independently: Sun: Material Sky: Material Fog: d3d Colour Sea: Material Light: d3d colour Notice that there will be a point each 30 sec and color beetween those point will be simply interpolated. (I think also to do the gradient only for period like 5h30 am/pm to 7h30 am/pm) I wonder how people commonly do this ? is your method simpler ? more flexible ? Dan

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!