浏览器控件中的 WebGL IE [英] WebGL IE in webbrowser control

查看:31
本文介绍了浏览器控件中的 WebGL IE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 .NET Winforms 应用程序中的 IE 浏览器控件中测试 WebGL 的使用.我已经安装了 IE11 预览版并检查了 webbrowser 控件报告版本 11.如果我运行这个页面 [http://www.html5canvastutorials.com/three/html5-canvas-webgl-rotating-cube/] IE11 页面我看到一个旋转的立方体.在 winforms 应用程序中,它抱怨脚本错误.

I am testing the use of WebGL within an IE webbrowser control in a .NET Winforms application. I have installed IE11 preview and checked that that the webbrowser control reports version 11. If I run this page [http://www.html5canvastutorials.com/three/html5-canvas-webgl-rotating-cube/] page in IE11 I see a rotating cube. In the winforms app, it complains of a script error.

我已经在几个 WebGL 站点上尝试过,结果相似.有什么想法吗?

I have tried this with several WebGL sites with similar results. Any ideas?

推荐答案

默认情况下,WinForms WebBrowser Control 将在不支持 WebGL 的 IE7 标准模式下呈现站点.确保您的应用程序设置了适当的注册表项以将默认模式设为 IE11 边缘模式.

By default, the WinForms WebBrowser Control will render sites in IE7 Standards mode, which does not support WebGL. Make sure that your application has the appropriate registry keys set to make the default mode IE11 Edge Mode.

请参阅 http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx 描述了 FEATURE_BROWSER_EMULATION 功能控制键,但请记住这是在 IE8 的上下文中,所以它不包括 IE11 边缘模式的示例.http://msdn.microsoft.com/en-us/library/ie/ee330730(v=vs.85).aspx#browser_emulation 记录了最新的值,包括 IE11 Edge 模式的值.

See the IE Blog post at http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx which describes the FEATURE_BROWSER_EMULATION feature control key, but keep in mind that this is in the context of IE8, so it doesn’t include examples with IE11 Edge Mode. http://msdn.microsoft.com/en-us/library/ie/ee330730(v=vs.85).aspx#browser_emulation documents the latest values, including the one for IE11 Edge mode.

披露:我所在的团队负责 Microsoft 的 WebGL 实施

Disclosure: I am on the team that worked on Microsoft's implementation of WebGL

这篇关于浏览器控件中的 WebGL IE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆