首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > CAD教程 >

[讨论]Silverlight5 RTM 只能在OOB模式下使用3D硬件加速?解决思路

2012-02-13 
[讨论]Silverlight5 RTM 只能在OOB模式下使用3D硬件加速?来自:http://silverlight.bayprince.com/tutorial

[讨论]Silverlight5 RTM 只能在OOB模式下使用3D硬件加速?
来自:http://silverlight.bayprince.com/tutorials.php?tutorial=8

Silverlight 5 Beta and RC allowed 3D to work directly in the browser. Silverlight 5 RTM requires that the application is running in OOB (Out of Browser) with elevated permissions. You can enable OOB in the Project's Properties panel. The Enable GPU Acceleration checkbox must also be checked. 

大略的意思好像是说:Silverlight5正式版启用了更加严格的许可权限,只能在用户允许3D加速且在外置OOB模式下才可使用,在浏览器中是不允许像RC版那样直接使用3D加速的。

看到这篇文章时直接放弃了更新本地RC版的打算。。。

这么一来,想要在页游产品中提供3D加速的话,岂不是只能向用户提供外置的登录器了?跟flash相比,Silverlight插件的推广本身就是个问题,除了下载插件再要求玩家额外下载一登录器?不晓得未来MMO市场还能占得住多少。。。

[解决办法]
要高信任權限,同時這個權限的開啟,沒有任何許可對話框(哦!對話框已經夠煩人的了,不是麼?),而是需要用戶使用5個詭異的不可理解的步驟才能夠打開。
似乎在默認情況下,整個3D特性都被Block掉?這簡直糟糕透了:顯然觸怒用戶和開發人員可不是什麼好主意。

http://blogs.msdn.com/b/eternalcoding/archive/2011/12/10/silverlight-5-is-out.aspx

Security and 3D
First of all, please read this article: http://blogs.msdn.com/b/eternalcoding/archive/2011/10/18/some-reasons-why-my-3d-is-not-working-with-silverlight-5.aspx

By the way, you may experience security errors with Silverlight 5 RTM when you want to use the wonderful new 3D feature. In fact, some graphics drivers may allow malicious code to execute. That may lead to an unwanted hard reset or a blue screen.

Starting with the beta version, to protect users for this kind of trouble, we initiate a first scenario where all Windows XP Display Driver Model (XPDM) drivers on Windows XP, Windows Vista, and Windows 7 will be blocked by default. Permission will be granted automatically in elevated trust scenarios and Windows Display Driver Model (WDDM) drivers will not require user consent at run-time.

But as always, features, including security features, continue to be refined and added during post-beta development.

And for the RTM version, there were a number of approaches considered to further improve security and stability, but the solution to block 3D in partial trust by default was the best option for this release. Permission is still granted automatically in elevated trust scenarios.

To grant 3D permissions, you just have to right click on your Silverlight plugin, go to the Permissions tab and allow your application:

還有討論樓:
http://forums.silverlight.net/t/244238.aspx/1

微軟啊用的越多就越恨他。
好吧。即使如此,我也不會跑去HTML5+JS。反正都是浪費人生,我寧可選擇舒服點的。

热点排行