title: Opening a 3D scene in WPF using WebBrowser control
body: <p>I modeled and rendered a 3D scene using <code>Marmoset Toolbag</code> and exported it to a <code>Viewer file</code>. This will give me a <code>.mscene</code> file and a <code>html</code> file. All I have to do is to put them in the same folder and open a <code>html</code> file with a browser that has <code>webgl</code> activated and it works. It works using <code>FireFox</code> for example. 
  However, when I wish to load it to my <code>grid</code> in my WPF app, it just says errors, like _ Script error: error in the page's command_ (error message is my translation sorry). <em>Error code: 0. Line: 0, Character: 0.</em> I always say to continue but in the end All I get is a blank page. 
  This is the code I wrote to open it up:</p>
  
  <pre><code>private void ShowDumbbellMethod()
  {
      var targetGrid = (parent as BrowseWares).ViewerGrid;
      var viewer = new WebBrowser();
  
      viewer.Source = new Uri("C:\\Users\\agoston\\Documents\\Visual Studio 2015\\Projects\\HP_hf_shop\\HP_hf_shop\\HTML\\dumbbell.html");
  
      targetGrid.Children.Add(viewer);
  
  }
  </code></pre>
  
  <p>The <code>URI</code> points to my project for now. </p>
  
  <p>How to get this to work? All I saw on the internet was webgl with <code>WebControl</code> dated back to 2013. </p>