Viewport3DDecorator Exception

Topics: Developer Forum, User Forum
Apr 4, 2007 at 3:17 AM
Hey gang. I exported a model from Lightwave 3D to XAML and imported it into Blend and its working fine.

I am now trying to map some UI onto the object using this great library you have written.

So my object is an oval where one half is one surface, the other half is another surface. I want to map UI to both sides. The XAML can be found here:

http://www.pastebin.ca/423335

So I've tried to follow the same model I see in an example provided with 3DTools but I get a target invocation exception and Blend when opening the XAML says:

ArgumentException: Not a valid child type Parameter name: value
at3DToosl.Viewport3DDecorator.setContent(UIElement value)

Any help would be greatly appreciated.

Thanks and take care.
Apr 4, 2007 at 4:08 AM
Edited Apr 4, 2007 at 4:09 AM
Ok well seems I posted a bit premature but I am still having issues. I am now getting a mesh displaying and no more errors, but I do not see any controls displayed on either side of my mesh.

Here is the much MUCH cleaned up XAML ;)

http://www.pastebin.ca/423367

I see, the mesh, I can rotate it, I can see both sides of the oval, but I cannot see any labels or buttons anywhere.
Apr 4, 2007 at 7:14 PM
Could someone try the 2nd XAML example I pasted and help me figure out why the UI elements will not display on the oval?

Any help would be greatly appreciated :) I get no errors and I have played around with the XAML but can't seem to find anything that works.

Thanks and take care.
Apr 9, 2007 at 12:33 AM
Anyone please? Is this forum dead? I'm not seeing a whole lot of support here.

Thanks and take care.
Coordinator
Apr 13, 2007 at 3:53 PM
You need to give your mesh texture coordinates so that WPF knows how to map the UI on to the mesh. Lightwave should have tools too help you do that.