View Full Version : Transforming the 3D model affects the shadow map
07-23-2011, 02:44 AM
Based on this article (http://www.flashbang.se/archives/87) I have implemented the shadow map. everything seems to be OK. but when I transform the 3D model using the translation/rotation/scaling, the shadow becomes distorted.Also when I move the camera around the world, the shadow of the transformed objects flickers. I don't know why the model matrix and moving the camera affects the shadow?
07-23-2011, 05:31 AM
Sounds as if you have not truely decoupled your scene camera from the light's camera. Perhaps your mistake is in calculating the inverse camera matrix.
07-23-2011, 06:44 AM
Thanks, my problem solved :-)
07-23-2011, 02:28 PM
Care to share with the community?
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.