c# - OL3-Cesium in WPF web browser control -


i want use ol3-cesium display globe view in wpf application using webbrowser control. sample html file works fine in ie 11 browser, if run same file through webbrowser control gives error saying 'the browser supports webgl initialization failed' in cesium.js.

i made wpf application compatible ie 11 editing key in local machine in registry , still did not work. please me out solution.

you mention making webbrowser work more ie11 using registry key, need more one. in particular:

  • feature_browser_emulation needed ie11 compatibility , access webgl api provides
  • feature_gpu_rendering needed enable hardware-accelerated 3d in embedded window.

note cesium uses failifmajorperformancecaveat default, means if gpu rendering isn't available, cesium prefers fail rather try run software rendering. can overridden, results predictably bad, use gpu registry key instead.

hkey_current_user\software\microsoft\internet explorer\main\featurecontrol\feature_browser_emulation     "myapplication.exe" : reg_dword = 11 hkey_current_user\software\microsoft\internet explorer\main\featurecontrol\feature_gpu_rendering     "myapplication.exe" : reg_dword = 1 

here's great article explains how use these registry keys , embed webgl apps:

http://zett42.de/software/2013/04/04/performance-issue-of-embedded-ie-browser-control-and-how-to-fix-it/


Comments