views:

46

answers:

2
+2  A: 

You cannot achieve this kind of effect with linear transformation (mathematically impossible).

You could get this effect with WPF 3D.

CommanderZ
thanks but could you point me some code or exapmle? it would be really good for me
Vinod Maurya
A: 

You can achieve this effect with a custom pixel shader.

Download a copy of Shazzam (it's free) and check out the paperfold sample (shazzam-tool.com). While it's not exactly the shear effect you showed in your question, it is close.

Have you worked with shaders before? If you want to use a custom shader I have a prototype shear effect that I worked on a couple months ago. I can clean up the HLSL and post it here.

Edit

Shazzam contains a tutorial section and about 80 sample shaders. That's a good place to start. The hardest part about using custom shaders is that you have to learn a new language (HLSL).

There is a list of shader articles at http://blog.shazzam-tool.com/index.php/shader-articles/

Walt Ritscher
Thanks if you could teach me something about custom pixel shader or point me in the right direction will be great. I am confused what to chose and what to not. I mean I have many directions to go ie. Image transformations, viewport3d transformation, camera rotations.. etc etc. But I am not be able to find the best solution.
Vinod Maurya