Questions tagged [viewport3d]

Viewport3D is a .NET framework class used to render 3-D content within the application 2-D layout.

89 questions
6
votes
2 answers

How to rotate camera in ViewPort3D using mouse in WPF?

I was able to set the position and direction of the perspective camera placed in the viewport3d directly in XAML. But i would like to know how can i rotate the camera using the mouse input. I would prefer C# lang. I was actually stuck at the point…
Surya KLSV
  • 1,260
  • 4
  • 18
  • 26
6
votes
3 answers

Is there a secret trick to force antialiasing inside Viewport3D in Windows XP?

Under Windows XP WPF true 3D content (which is usually displayed using the Viewport3D control) looks extremely ugly because it is by default not antialiased as the rest of the WPF graphics are. Especially at lower resolution the experience is so bad…
bitbonk
  • 48,890
  • 37
  • 186
  • 278
5
votes
1 answer

Viewport2DVisual3D Frame created is not visible

Hi all i have a frame code as such When i click on a button, it loads it with a url as such wow.Source=(new Uri("http://www.google.com")); It works when i throw it into a grid, it appears just…
user1423316
4
votes
1 answer

3D Cube rotation around x and y axis

I'm writing a WPF application that uses Viewport 3D to display a cube, made up of 6 different colored-faces. In the end I'm trying to create a rotatable Rubik's Cube. I have built in two methods to rotate the camera around the cube, one using…
4
votes
1 answer

Place an Image into ViewPort3D in wpf

I am having problem in displaying th Image in viewport3d of wpf.
Vinod Maurya
  • 4,167
  • 11
  • 50
  • 81
4
votes
1 answer

Viewport3D Mouse Event doesn't fire when hitting background

I set up a Viewport3D with a MouseEventHandler [...] Main3DWindow.MouseUp += new MouseButtonEventHandler(mainViewport_MouseUp); [...] void mainViewport_MouseUp (object sender, MouseButtonEventArgs e) { Point location =…
xelor
  • 319
  • 3
  • 10
4
votes
1 answer

Display 3d model as 3D mesh object using wpf 3D graphics

I am working on a C# .Net platform with 3D Wpf Graphics. Here is flow of code follows: 1) I take the depth data from kinect and give it to one function which calculates 3d points. private void display3DView() { while(loop_run) { …
user3068954
  • 45
  • 1
  • 5
4
votes
0 answers

WPF Display FPS

I'm trying to display the FPS for a Viewport3D. Doing some searching, I came across CompositionTarget.Rendering, but this seems to give different results to the FPS displayed in the "WPF Performance suite" tool. When using…
hammer
  • 145
  • 1
  • 10
3
votes
2 answers

Viewport3D performance on a simple mesh

I created a full-screen WPF Canvas, representing a time line. Only the visible part of the time line is composed, so (practically) no UI elements lie outside of the visible range. I'm trying to add perspective to this time line using a Viewport3D.…
Steven Jeuris
  • 18,274
  • 9
  • 70
  • 161
3
votes
2 answers

FMX ViewPort3D performance drop when filled with a large number of 3D shapes

I have a ViewPort3D element in a multi-device application form that being filled with a large number of TRectangle3D elements (anywhere from 1 to 10000) with LightMaterialSource applied to them, which all need to be rendered dynamically since I'm…
3
votes
0 answers

SlimDX rendering a visual to a bitmap

I want to render a viewport3d visual to an image using hardware rendering. How could I do that using SlimDX? I'm using WPF & VB.NET 4.0 and SlimDX. Any tips will help, thanks in advance. :) Here is the code I use to render a viewport3d, it is very…
bat3a
  • 31
  • 4
3
votes
2 answers

Useful lighting of a single-colored 3D object in a WPF Viewport3D

I have a 3D Modell of a house, where the roof is invisible so that the rooms can be seen (like here) But (for now) I have no textures and each surface has the same color, e.g., var myMaterial = new DiffuseMaterial (new SolidColorBrush(myColor)) If…
Janko R
  • 137
  • 1
  • 9
3
votes
1 answer

Visualizing point clouds in WPF Viewport3D is extremely slow

I am trying to visualize a point cloud of ~170000 points using WPF's Viewport3D control. After generating the 3D point coordinates I create a triangle with a certain size at each point and add it to a Model3DGroup object which I append to my…
András Kovács
  • 847
  • 1
  • 10
  • 29
3
votes
1 answer

How to change ViewPort3D background color in WPF?

i have viewport3d and i want to change its background color. i am very new to Wpf. i didnt understand what to do from other posts. so i ask here. i changed brush property for viewport3d but it does nothing
M.kazem Akhgary
  • 18,645
  • 8
  • 57
  • 118
3
votes
1 answer

WPF Performance with text

I am creating a WPF application with a Viewport3D and inside the viewport I have meshes with text on them. The text is different for each of the mesh. (This means that I can have a single reference for a material for the regular meshes, but for the…
Revils
  • 1,478
  • 1
  • 14
  • 31
1
2 3 4 5 6