Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a ViewPort3D, Which has been inserted many objects. the ViewPort3D has its width and height defined. how can I make the objects displayed wholly inside the width and height


I am Adding all 3D shapes in this viewport3D and whenever I add new object which is bigger than the height and width of viewport I have to rotate the whole 3D scene to look for the object ....is there any solution to it?please suggest any solution –

What I have tried:

this is my camera of viewport3D

XML
<PerspectiveCamera x:Name="camera" FarPlaneDistance="100" LookDirection="0,0,-10" UpDirection="0,1,0" NearPlaneDistance="0" Position="0,0,7" FieldOfView="50" />
Posted

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