Questions tagged [modelvisual3d]

12 questions
8
votes
1 answer

ModelVisual3D vs Model3DGroup

Is there any disadvantage of using ModelVisual3D over Model3DGroup. How much can the resource/performance impact possibly be? ModelVisual3D gives me much more than Model3DGroup does but AFAIK everything that can be done with Model3DGroup can alos be…
bitbonk
  • 48,890
  • 37
  • 186
  • 278
4
votes
2 answers

Make a 3D model transparent

How can I make a specific 3d model transparent? Is it as simple as changing the opacity of the model's material? I tried the following: SolidColorBrush br = (SolidColorBrush)matDif.Brush; //matDif = DiffuseMaterial br.Opacity = 0.3; When it tries…
user159419
  • 71
  • 1
  • 4
2
votes
1 answer

WPF 3D - Fit ModelVisual3D into the camera's field of view?

I have a cuboid who's dimensions are imported from XML so i need to be sure that no matter what the size of the model, the camera can always see all of it. This is for preview purposes. I'll likely render a caption over the top showing the scale…
EightyOne Unite
  • 11,665
  • 14
  • 79
  • 105
2
votes
0 answers

WPF ViewPort3D user control with ModelVisual3D property binding?

I’m building a user control that has a ViewPort3D. I want to be able to update the view port with a bound property of ModelVisual3D (through an exposed method accepting data that is used to create the visual model). To try the user control I am also…
ua1
  • 21
  • 1
  • 3
2
votes
1 answer

ModelVisual3D not rendering properly in DockPanel

I am extremely new to WPF and am trying to create an application where I will have a globe plotted in one tab with a flat map in the second tab. I was able to get the globe plotted in a test application, with the code below:
Mike C
  • 103
  • 7
1
vote
3 answers

WPF 3D - Detirmine whether a ModelVisual3D is being clipped inside it's Viewport3D

I have a cube rendering inside a Viewport3D and i need to know a way to find out whether ALL of the cube is visible to the user. Edit:Just to be clear,..I'm not talking about clipping because of the near/far plane distance here. I mean the cube…
EightyOne Unite
  • 11,665
  • 14
  • 79
  • 105
1
vote
1 answer

Align 3d Object to Camera position

I am using the Viewport control to visualize 3d Tool Models with the help of AB4D PowerToys. Currently I'm trying to align my 3D Text (which is a group of lines) to the camera, so it rotates always to the camera and appears like 2D text. Is it…
Johannes Wanzek
  • 2,825
  • 2
  • 29
  • 47
1
vote
0 answers

WPF: Check if two ModelVisual3Ds are mostly overlapping

I have a question regarding WPF programming, and it's with regards to whether we can check if a certain percentage of a shape is intersecting/overlapping with another shape. My intention is to create a minigame where there will be a model (e.g. a…
matt
  • 2,857
  • 7
  • 33
  • 58
0
votes
3 answers

WPF 3D :check if a cube can completely contain another cube

I am working on drop & drop in 3D. I have created 3D spaces (rooms) with walls (cubes) which act as place holders for objects (assume a smaller cubes) being dropped. How do I go about figuring out : if the user drops the object at edges of the room…
CF_Maintainer
  • 973
  • 2
  • 12
  • 30
0
votes
0 answers

Binding AxisAngleRotation3D to save the angle change

My goal is to save the xAngle in my ViewModel, after rotating the 3d model. For some reason, the properties are not updated in the ViewModel What am I missing here? Here's my code: I have the following code in the xaml:
Idanis
  • 1,918
  • 6
  • 38
  • 69
0
votes
1 answer

Updating WPF Model using dispatcher

I have a Visual3D object loaded from a file and displaying on screen. That works fine. I am trying to rotate it from data received in a SerialDataReceivedEventHandler - which also works fine. When I try to rotate the model, it throws an…
toadzky
  • 3,806
  • 1
  • 15
  • 26
0
votes
2 answers

How to hide "cracks" between GeometryModel3Ds in one ModelVisual3D?

I am writing a geoscience visualization application that uses wpf 3d. The user needs to be able to zoom deep into detail and out quick with minimum resources taken. I've decided to divide my slice (ModelVisual3D) into subrectangles…
Timur Nuriyasov
  • 359
  • 2
  • 16