   flashlight in the dark
  I am working on a first person game in which the player will need to crawl through a ventilation shaft or some such crawlspace. I would like the vent to be almost completely black and illuminated by a flashlight or torch or something. I am trying to decide how to go about doing this. I was thinking I may need to use a lightmap on the sides of the vent to get the light shape on the walls and then an actual light, in conjunction with the light map, to illuminate any objects in the vent (ie. enemies).It would also be great if I could cast a beam if it were hazy, like in splinter cell.Am I on the right track?Any suggestions would be much appreciated.Any good openGl lightmap resources?[edited by - stef3d on February 10, 2004 7:09:21 PM]
  Perhaps you could use projective texturing to apply a light ''shape'' texture to all the geometry in the lights area? Maybe even combine a couple of light textures to get a more complex shape (a 2d texture for shape, and a 1d texture for intensity falloff).http://developer.nvidia.com/object/projective_textures.html ;  Hi,You can use also a dynamic lightmapping : ========================Leyder Dylan (dylan.leyder@slug-production.be.tf   http://users.skynet.be/fa550206/Slug-Production/Index.htm/ 