tags:

views:

136

answers:

1

How to make a shadow for a 3D model in WPF?

+1  A: 

You can find one solution at: http://www.charlespetzold.com/blog/2007/03/160404.html

Another way that I have done it is to have two separate ViewPort3D's. One for the surface on which I want to project the shadow and a second one that contains the object that project the shadows. Then I add a drop shadow effect to the second ViewPort3D. If you do the light right it improves the 3D feel a lot.

Here are some examples:

Without Shadow: alt text

With Shadow: alt text

Julio Garcia