Jump to content
  • Advertisement


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


Light mapping techniques

This topic is 6380 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 kind of way would be optimal to do light mapping? There''s two possible ways I can think of doing this. 1) I include an extra mapping coordinates for every vertex I have and use them to draw light map blending it with diffuse color and base texture (and possibly ''detail'' texture) 2) I draw separate transparent polygons containing the light texture map over every face in the light range Using the way 1) I would: + have a constant amount of polygons independent from the number of lights. - have to use one texturing unit for light mapping and thus slowing down the rendering of the possible third texture since most of current hardware (gf2) sports 2 simultaneous textures in single pass. (radeon and nv20 have 3) - have to use at least two floats of mapping coordinates for EVERY vertex that are sent to 3d accelerator and so jamming the bus a little bit. Using the way 2) I would: + not have to have the extra mapping coordinate in every vertex + not have to draw the extra polygon in places aren''t ''lit'' - possibly have to create new vertices every frame for the light maps (there might be a way to get around this?) - have much more vertices to render and to send down the bus Oh and I don''t even know how light mapping is ''meant'' to be done, so if I''m talking bull shit just correct me please

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!