Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET XAML WPF graphics 3D
I want to view my 3D object on the screen in four different angles using a perspective and orthographic camera. I am thinking of creating four radio buttons each for one camera, checking on which will switch over to that particular view. How to do this in WPF ? I have searched in google, but have not found a convincing answer for a betginner. Any help would be much appreciated. Thanks
 
PS: I tried using four times, but I get an error that the method is already defined or something.
 
Also, Please let me know how to move the camera on 3D screen by dragging the mouse during run-time. I would like to view an object from different angles without rotating it.
 
Thanks
Posted 12-Sep-11 15:06pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I want to view my 3D object on the screen in four different angles
Any one 3d scene (Viewport3D) can only have one camera. if you want 4 different views then you have to have four Viewport3D and replicate your 3d world for each of them.
 
PS: I tried using four times, but I get an error that the method is already defined or something.
You should have shown us what you had tried and the exact error.
 
Please let me know how to move the camera on 3D screen by dragging the mouse during run-time
This is a Q&A not a "write me an article", the math involved in this and the amount of code well is not easy to understand, especially not when we do not know your level. And there is already tons of articles out there on that subject. E.g.
WPF 3D Primer[^]
  Permalink  
Comments
steersteer at 13-Sep-11 10:22am
   
Thanks for your reply. Have found some articles about moving the camera around a 3D scene. Working on it.
Simon Bang Terkildsen at 13-Sep-11 11:56am
   
Cool, I just want to make clear that you're ofcourse very welcome to ask about any specific problems you run into when implementing your mouse handling for moving the camera.

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

  Print Answers RSS
0 OriginalGriff 515
1 Maciej Los 349
2 Richard MacCutchan 220
3 BillWoodruff 209
4 Mathew Soji 160
0 OriginalGriff 8,654
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,229
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 13 Sep 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100