View Full Version : Shadow Volumes.
09-15-2002, 12:44 AM
Im having problems with my shadow volume. I get floating point inaccuracies when determining which edges should cast a volume. This is not a problem with models which are like a cube or something, which arent smooth or detailed, but when its like a highly detailed sphere, i get many inaccuracies and as a result the volume is wrong in lot of places. So, does any1 kow how to fix this?
09-15-2002, 07:37 AM
How are you determining the silhouette edges?
09-15-2002, 06:20 PM
Im doing the "standard" way of seeing which faces are facing the light, and then im determining if the face has any edges that should cast a shodow, i do this by seeing the face that shares that edge is visible, and if not then the edge should cast a shadow. FLoating point inaccuracies arise when deciding if a face is facing the light or not, because if you have a very detailed model the normals are very smooth and thus you will be getting an edge casting a shadow when it shouldnt, and vice versa. Basically im using the method used in the NeHe tutorial on shadows, however, in that tutorial, the model used is VERY simple cross, thus floating point inaccuracies wouldnt affect that demo, but im wondering how to do it so i can use very detailed models.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.