Jump to content
  • Advertisement


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


Lighting - Not in DX

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

What would be the best way to go about lighting in a 2d isometric view game? I''m thinking that I should change the brightness of each tile that I want to be lit, but is there a way to pixel-plot light so that it isn''t restricted to tiles only? As examples, Fallout just changed the brightness of the tiles surrounding a certain point, but Diablo II changed the pixels surrounding a point, making it look more realistic.

Share this post

Link to post
Share on other sites
Here are two ways to do that...

Have a seperate "light layer" on your map that indicates "light tiles" (basicly greyscale shaded tiles that have arcs and such on them, so if you place several together they form a circle,etc.)...read up on "light maps" for 3D engines like Quake, as this is very simular, except in 2D

calculate the light level at each tile verticy (corner) and apply a groaud shaded polygon fill routine when rendering...

there are even ways to combine the two above

Share this post

Link to post
Share on other sites
I wrote a point based lighting sytem
but due to DirectDraw''s inability to draw perpixel via hardware or to alphablend in hardware it was too slow. amazingly enough it worked fine using GDI as a renderer

Raymond Jacobs,
Profesional Web Applications Developer,
Weekend Game Developer,

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!