question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SharpDX - Viewport3DX inside WPF ViewBox crash

See original GitHub issue

Hello,

I have an issue putting the Viewport3DX of HelixToolkit.Wpf.SharpDX 2.13.1 inside a System.Windows.Controls.ViewBox. The ViewPort3DX is flickering and showing the 3D model multiple times. After some seconds the view port crashes followed by this exception:

Screenshot 2020-10-21 122514

This is the content of my main window, the rest of my project is a default .Net Framework 4.7.1 WPF application:

<Grid>
  <Viewbox>
    <hx:Viewport3DX>
      <hx:Viewport3DX.EffectsManager>
        <hx:DefaultEffectsManager />
      </hx:Viewport3DX.EffectsManager>
      <hx:Viewport3DX.Camera>
        <hx:PerspectiveCamera />
      </hx:Viewport3DX.Camera>
      <hx:AmbientLight3D />
    </hx:Viewport3DX>
  </Viewbox>
</Grid>

Regards

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Borckcommented, Oct 29, 2020

Thanks for your reply. I uploaded by minimal example. Sometimes my machine is stucking for some seconds. I have a Ryzen 3700X and a RTX 2070.

https://github.com/Borck/HelixWPFTest.git

Hope this helps.

0reactions
ms-somannacommented, Feb 13, 2021

Viewport3DX in viewbox does not know the size, so it keeps growing the resolution until it crashes. Specify the width and height on Viewprot3DX should fix the issue.

I’m getting a blank black screen even after setting the height and width of Viewport3DX

Read more comments on GitHub >

github_iconTop Results From Across the Web

Newest 'sharpdx' Questions - Page 3
I am using HelixToolkit.Wpf.SharpDX to display a mesh in the 3D viewport. A requirement I have is to display any given mesh as...
Read more >
bodxp/helix-toolkit
Fixed keybinding issue in Viewport3DX. Ref #1390 (WPF.SharpDX). Fixed UWP runtime error due to dependency property naming conflicts. #1365. In order to fix ......
Read more >
Release 2.16.0
Fixed viewport crash during display configuration change #1531. · Fixed cursor is wrong after pressing multiple mouse button simultaneously (WPF.
Read more >
Viewbox Class (Windows.UI.Xaml.Controls) - UWP
Gets or sets a property that declares alternate composition and blending modes for the element in its parent layout and window. This is...
Read more >
helix-toolkit
Hi! HelixToolkit.Wpf has a DataTemplate demo project. There is ItemsVisual3D container class for 3D objects which is a simplified version of ItemsControl. It ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found