Click here to Skip to main content
15,943,148 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created a grid in wpf 3D and manually set different camera positions front back top bottom views.

and rotated it by the mouse.


the problem is that it is working perfectly fine with top view all rotations are perfectly fine but as i apply another another view it rotates in opposite direction

the grid is supposed to view at origin(0,0,0)

What I have tried:

Here is the camera positions for bottom view.

camera.Position = new Point3D(0, 0, -5);
camera.LookDirection = new Vector3D(0, 0, 5);
camera.UpDirection = new Vector3D(0, 1, 0);

the transformation is done with
camera.transform=trackball.transform;

but in bottom view camera is rotating in opposite directions...pls help
Posted
Updated 26-Dec-16 17:31pm

1 solution

You did a good try. I am not expert in wpf 3d. But I suggest WPF Helix Toolkit - is a 3D library for WPF, it has 3D viewport with all necessary functionalities, give it a try.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900