Archived

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

daytime/nighttime

This topic is 5776 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

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 ]

Share this post


Link to post
Share on other sites