Jump to content
  • Advertisement
Sign in to follow this  
NewToBi

Question on static shadows

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

Hello all I’m a bit confused on how to add static shadows (NOT dynamic volume shadows with the stencil buffer) from a light source (spot light) onto a static scene. The scene is made in 3D studio Max, but I guess this is not important here. I just what the corners in the scene to be darkened a bit. I’m was thinking of doing this: 1) calculate the color value for each vertex, using the vertex normal and the light direction. But the drawback here is that I would need many triangles in the scene to make this look good. 2) use the Quake alike lightmaps, but I would really like to avoid this, mainly since its quite difficult making lightmaps in 3dmax, and also it takes a lot of memory. I’m just not sure if it possible to make a static spot light effect on a quad with only 4 vertices without using a lightmap, What should I do ?

Share this post


Link to post
Share on other sites
Advertisement
Lightmaps does not eat a lot of memory (usually they are very small). Quake 3 map DM6 has 17 128x128 lightmaps, that's 17*128*128*3 = 816 KiB. With texture compression that's really nothing..

There are plenty of lightmapping tools, gile[s] to name one. And, writing a lightmapper is somewhat fun though.


Edit: Typo

[Edited by - Sunray on September 26, 2004 1:10:44 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!