daytime/nighttime

Started by
1 comment, last by Zanthos 22 years, 1 month ago
how do you change the tile set from light to dark? i thought about gamma settings, but isn''t there another way to do it? i was thinking about maybe having two tiles in each set, one for light, the other for dark, but i thought that would be a waste of memory. i tried putting an black semi transparent layer over the top of tiles that are dark, but i knew that''d have a major performance decrease, which it did. Whats the way to go about it properly? DarkStar
Advertisement
Some suggestions, you could:-
1) change the ambient light value DXDisplay->SetRenderState(D3DRS_AMBIENT , clr );
2) change the material amibent/diffuse DXDisplay->SetMaterial( &Material );
3) change the undlerying vertex colours.
If you''re using 2D rendering, I''d bite the bullet and make 2 (or more) sets of tiles. You can generate a darker set from the lighter set really quickly in Photoshop, and while it may take up a lot of disk space, bear in mind that you shouldn''t need to keep both the light and the dark tiles in system memory at the same time during execution. So all its costs you is the loading time.

[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost ]

This topic is closed to new replies.

Advertisement