hehe... As you all know here is an other problem at my shadow volume project...i think its a math problem..
I have an freezed object. And I have a light. THen the shadow is correct. now if I try to move the object(using a rotate,translate) the shadow remains at the same place. this is correct because the actuam vertex position of the silhuette does not change. now before I draw the shadow volume I do this: glMultMatrixf(primitive->prMatrix); Now the shadow moves while the object moves but not correct.
I try to just multiply the light position with the objects matrix and then pass the resulting light position in the draw shadow volume function but the result is not correct.
anyidea what is wrong?
thanks in advance