Advertisement

Multiple tiles lightmap

Started by July 01, 2000 03:54 PM
-1 comments, last by Darkening 24 years, 5 months ago
I have a isometric engine that I render with Direct3D and D3DTLVERTEX. What I would like to do is having dynamic lightning on my map using lightmap. What I want to know is how I would apply my lightmap over multiple tiles. I know how to apply it on one tile but on more than one, I really don''t know how to do it. Do I have to assign the lighmap to each tile which is in the light range and change the tu, tv of the lightmap texture to make an illusion of a ball of light ? If so, I would you do that ? Can I draw my lightmap over the map, after I rendered all my tiles, by assigning my lightmap to a "zone" over the part of my map I need to be lit ? I''m open to any other kind of dynamic lightning algorithm I could use in my engine but if you do so, please include some code or be specific. Don''t just tell me to use vertex lightning (Which I don''t want to). Thanks for any help you can give me, Darkening --------------------------- Unfortunately, no one can be told what a bug is. You have to see it for yourself...
---------------------------Unfortunately, no one can be told what a bug is.You have to see it for yourself...

This topic is closed to new replies.

Advertisement