View Full Version : how to get shadow
01-06-2001, 10:43 PM
How can i produce shadow of objects in opengl?
01-07-2001, 01: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, 11: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.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.