View Full Version : how to get shadow
01-06-2001, 09:43 PM
How can i produce shadow of objects in opengl?
01-07-2001, 12:28 AM
In the same way that you use static lighting with lightmaps, only have a dark lightmap and it will make a shadow. You probably won't know what static lightmapping is since you asked this question so have a look at www.flipcode.com/tutorials/tut_lightmaps (http://www.flipcode.com/tutorials/tut_lightmaps)
01-07-2001, 10:05 PM
shadows can be very complex... in the super bible there is an example which shows a piece of code that can produce a shadow triangle given a light, a lit triangle, and a plane where the shadow is to be cast upon.. There are other ways to get shadows like buffers and stuff...
Or even Radiosity!! http://www.opengl.org/discussion_boards/ubb/smile.gif
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.