wpf-3d

WPF 3D - Need help writing conversion methods between 2D and 3D (Point3DToPoint and PointAndZToPoint3D)

I'm new to WPF 3D, so I may just be missing something obvious, but how do I convert from 3D to 2D and (for a given z location) from 2D to 3D? Specifically, I need two conversion methods: Point3DToPoint - If I have an (x, y, z) coordinate in the 3D world, how do I determine the (x, y) coordinate on the projected 2D surface. Method sign...

In WPF 3D, why can't a perspective camera's LookDirection be straight down?

I'm attempting to position my perspective camera 30 units above the origin and pointing straight down. If I set the LookDirection of the camera to "0,0,-1", however, everything disappears. I have to make it "0.01,0.01,-1" for it to work. Why? <Window x:Class="ThreeDeeTester.Window1" xmlns="http://schemas.microsoft.com/winfx/200...

Is it possible for a WPF control to have an ActualWidth and ActualHeight if it has never been rendered?

I need a Viewport3D for the sole purpose of doing geometric calculations using Petzold.Media3D.ViewportInfo. I would prefer not to have to place it in a Window or otherwise render it. I'm attempting to accomplish this by instantiating a Viewport3D and setting a few properties using the following C# method: private Viewport3D CreateView...

Set UIElement3D.IsFocused

Hi How can I set the IsFocused Property to true for an UIElement3D. Inside my Hitdetection Method I run UIElement3D.Focus() and the UIElement3D.Focusable is also true, but the IsFocused Property is after that not set to true... Any ideas? ...

Problem with RenderTargetBitmap and Viewport3D

Hi I use Viewport3d and display my 3D Elements with inherited UIElement3D classes... Now I want to make different images of my viewport (different views). That means I have to make a new viewport3d at runtime and apply my specific view for the image on it.. see the following code: ' Start creating Image Dim bitmap As New RenderTargetB...