shadows for obects
ChevyCP wrote at 2012-01-05 20:45:
Hi,
Is there an easy way to add a shadow for all objects within a helixviewport3d? I added a dropshadow effect, which is what I'm going for, but that doesn't change when I rotate the objects inside relative to the light source. (So that it would grow and shrink depending on where the objects were in the scene.) I understand that this could be a costly function, but was looking for a solution. If this doesn't exist, then I'd like to add it as a feature request.
Thanks!! Great work!
objo wrote at 2012-01-05 21:41:
I don't think it is possible to create shadows as in opengl/directx (using shaders or stencil buffers) with wpf, if this is important I think you should choose another platform than wpf3d... (xna?)
- http://en.wikipedia.org/wiki/Shadow_mapping
- http://www.opengl.org/resources/features/StencilTalk/
- http://www.opengl.org/resources/code/samples/mjktips/rts/index.html
- http://www.riemers.net/eng/Tutorials/DirectX/Csharp/Series3/Shadow_mapping.php
- http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/an-example-of-shadow-rendering-in-direct3d-9-r2019
- http://http.developer.nvidia.com/GPUGems/gpugems_ch12.html
- and many more...
ChevyCP wrote at 2012-01-05 21:47:
Thanks for the fast reply and useful info!! This isn't critical, I was just looking for some eye candy for a program I'm writing. It's for work and instead of using pop-ups it uses sides of a 3d cube using a helixviewport3d with 6 viewport2dvisual3d's. I was just looking for an easy way to add some cool shadows for use during the animations when rotating from side to side.
Thanks!!
Customer support service by UserEcho