﻿{"id":1989,"date":"2012-09-17T16:31:48","date_gmt":"2012-09-17T08:31:48","guid":{"rendered":"http:\/\/blog.jixin.ntxz.net\/?p=1989"},"modified":"2012-09-17T16:31:48","modified_gmt":"2012-09-17T08:31:48","slug":"%e4%bd%93%e9%aa%8c-silverlight-5-3d%e5%bc%80%e5%8f%91%e4%b9%8b%e7%8e%af%e5%a2%83%e6%90%ad%e9%85%8d%e7%af%87","status":"publish","type":"post","link":"http:\/\/www.ntxz.net\/?p=1989","title":{"rendered":"\u4f53\u9a8c Silverlight 5 3D\u5f00\u53d1\u4e4b\u73af\u5883\u642d\u914d\u7bc7"},"content":{"rendered":"<p>\u9879\u76ee\u7ec4\u73b0\u5728\u8981\u505a\u4e00\u4e2a\u4e09\u7ef4\u7684\u9879\u76ee\uff0c\u6211\u4eec\u51e0\u4e2a\u7ae5\u978b\uff0c\u8ba8\u8bba\u4e86N\u4e45\uff0c\u6700\u540e\u51b3\u5b9a\u57fa\u4e8eSilverlight 5\u505a3D\u5f00\u53d1\u3002\u8bf4\u5230\u5f00\u53d1\uff0c\u5148\u5f97\u642d\u914d\u73af\u5883\uff0cSilverlight 5\u5fae\u8f6f\u81ea\u5bb6\u7684\u4ea7\u54c1\uff0c\u73af\u5883\u7684\u642d\u914d\u5e94\u8be5\u6bd4\u8f83\u5bb9\u6613\uff0c\u4f46\uff0c\u4e8b\u5b9e\u51fa\u4e4e\u4e86\u6211\u4eec\u7684\u610f\u6599\u3002<\/p>\n<p>\u6628\u5929\u722c\u5b8c\u51e0\u4e2a\u7f51\u7ad9\u7684\u6570\u636e\u540e\uff0c\u6211\u4e5f\u5f00\u59cb\u4e86\u73af\u5883\u7684\u642d\u914d\uff0c\u867d\u7136\u51fa\u73b0\u4e86N\u4e2a\u9519\u8bef\uff0c\u603b\u4f53\u6765\u8bf4\uff0c\u5728\u524d\u4eba\u6478\u7d22\u7684\u57fa\u7840\u4e0a\uff0c\u76f8\u5bf9\u8fd8\u7b97\u6bd4\u8f83\u5bb9\u6613\u3002<\/p>\n<p>\u4e00\u3001\u5fc5\u5907\u6761\u4ef6\uff1a<\/p>\n<p>1\u3001Visual Studio 2010\uff0c\u8fd9\u4e2a\u8fd8\u662f\u8981\u88c5\u7684\uff0c\u4e0d\u7136\u90fd\u6ca1IDE\u73af\u5883\uff0c\u5f00\u53d1\u4ec0\u4e48\u5462\uff1f<\/p>\n<p>2\u3001Visual Studio 2010 SP1\u8865\u4e01\uff0c\u5fc5\u987b\u6253\uff0c\u4e0d\u6253Silverlight 5\u4e0d\u8ba9\u4f60\u88c5\u7684\u3002<\/p>\n<p>3\u3001Silverlight 5 Tools\uff0c\u5fae\u8f6f\u7f51\u7ad9\u6709\u5f97\u4e0b\u8f7d\uff0cgoogle\u4e00\u4e0b \u5c31\u51fa\u6765\u4e86\u3002<\/p>\n<p>4\u3001Silverlight Toolkit (December 2011) for Silverlight 5\u3002<\/p>\n<p>\u4e8c\u3001\u521d\u6b65\u6298\u817e\u8bb0<\/p>\n<p>\u88c5\u5b8c\u4e86\u4e0a\u9762\u7684\u90a3\u4e2a4\u4e2a\u5fc5\u9700\u54c1\uff0c\u4f60\u53ef\u80fd\u5c31\u89c9\u5f97\u53ef\u4ee5\u7528\u4e86\uff0c\u4f46\u4e8b\u5b9e\u4f1a\u8ba9\u4f60\u54ed\u7b11\u4e0d\u5f97\uff0c\u65b0\u5efa\u9879\u76ee\uff0c\u538b\u6839\u5c31\u6ca1\u6709Silverlight\u7684\u6a21\u677f\u2026\u2026<\/p>\n<p><a href=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_no3Dpro.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_no3Dpro-300x144.jpg\" alt=\"\" title=\"SL53D_no3Dpro\" width=\"300\" height=\"144\" class=\"alignnone size-medium wp-image-1990\" srcset=\"http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_no3Dpro-300x144.jpg 300w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_no3Dpro.jpg 675w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u56e7\u2026\u2026\u8fd9\u5230\u5e95\u662f\u600e\u4e48\u56de\u4e8b\u5462\uff1f\u7ee7\u7eed\u95ee\u4e07\u80fd\u7684google\uff0c\u603b\u7b97\u627e\u5230\u4e86\u4e0b\u9762\u7684\u65b9\u6cd5\uff1a<\/p>\n<p>1\u3001\u8fdb\u5165Silverlight\u5b89\u88c5\u76ee\u5f55\uff08\u9ed8\u8ba4\u8def\u5f84\u4e3a\uff1aC:\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\IDE\\ProjectTemplates\\CSharp\\Silverlight\uff09\uff0c\u7136\u540e\u627e\u5230\u82f1\u6587\u8bed\u8a00\u76ee\u5f551033\uff0c\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u6709Silverlight Unit Test Project.zip\u3001Silverlight3dApp.zip\u3001Silverlight3dLib.zip\u4e09\u4e2a\u9879\u76ee\u6a21\u677f\u6587\u4ef6\u3002\u4f60\u6bd4\u5982\u8bf4\uff0c\u6211\u7684\u662f64\u4f4d\u7cfb\u7edf\uff0c\u90a3\u4e0a\u9762\u90a3\u4e2a\u76ee\u5f55\u5c31\u662fC:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\ProjectTemplates\\CSharp\\Silverlight\\1033\u3002<\/p>\n<p><a href=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_1033.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_1033-300x199.jpg\" alt=\"\" title=\"SL53D_1033\" width=\"300\" height=\"199\" class=\"alignnone size-medium wp-image-1991\" srcset=\"http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_1033-300x199.jpg 300w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_1033.jpg 901w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>2\u3001\u8fdb\u5165VS\u5b89\u88c5\u76ee\u5f55\u4e2dSL\u7684\u6a21\u677f\u8def\u5f84\uff08\u9ed8\u8ba4\u8def\u5f84\u4e3a\uff1aC:\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\IDE\\ProjectTemplates\\CSharp\\Silverlight\\2052\uff09\uff0c\u7c98\u8d34\u4e0a\u9762\u590d\u5236\u7684Silverlight Unit Test Project.zip\u3001Silverlight3dApp.zip\u3001Silverlight3dLib.zip\u4e09\u4e2a\u9879\u76ee\u6a21\u677f\u6587\u4ef6\u3002\u6211\u7684VS\u88c5\u5728D\u76d8\uff0c\u5219\u8def\u5f84\u4e3a\uff1aD:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\ProjectTemplates\\CSharp\\Silverlight\\2052\u3002<\/p>\n<p><a href=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_2052.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_2052-300x199.jpg\" alt=\"\" title=\"SL53D_2052\" width=\"300\" height=\"199\" class=\"alignnone size-medium wp-image-1992\" srcset=\"http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_2052-300x199.jpg 300w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_2052.jpg 909w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>3\u3001\u901a\u8fc7CMD\u547d\u4ee4\u884c\uff08vista\u53ca\u4ee5\u4e0a\u7cfb\u7edf\uff0c\u8bb0\u5f97\u8981\u201c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u201d\uff09\uff0c\u8fdb\u5165VS\u5b89\u88c5\u76ee\u5f55\uff08\u9ed8\u8ba4\u8def\u5f84\u4e3a\uff1acd C:\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\IDE\uff09\uff0c\u6211\u7684\u8def\u5f84\u4e3a\uff1aD:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\u3002<\/p>\n<p>4\u3001\u6267\u884cdevenv \/setup \u547d\u4ee4\u3002<\/p>\n<p>5\u3001\u6267\u884cdevenv \/installvstemplates \u547d\u4ee4\u3002<\/p>\n<p><a href=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_cmd.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_cmd-300x198.jpg\" alt=\"\" title=\"SL53D_cmd\" width=\"300\" height=\"198\" class=\"alignnone size-medium wp-image-1993\" srcset=\"http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_cmd-300x198.jpg 300w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_cmd.jpg 711w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u6267\u884c\u5b8c\u4e0a\u9762\u7684\u6b65\u9aa4\u540e\uff0c\u91cd\u65b0\u6253\u5f00VS 2010\uff0c\u65b0\u5efaSL\u9879\u76ee\uff0c\u4f60\u4f1a\u53d1\u73b0\u51fa\u73b0\u4e86\u4e0a\u56fe\u4e2d\u76843\u4e2a3D\u76f8\u5173\u7684\u9009\u9879\u3002<\/p>\n<p>\u4e09\u3001\u518d\u6b21\u6298\u817e\u8bb0<\/p>\n<p>\u4f46\u6298\u817e\u8fd8\u6ca1\u6709\u7ed3\u675f\uff0c\u65b0\u5efa\u9879\u76ee\u540e\uff0c\u76f4\u63a5\u62a5\u9519\u201c\u521b\u5efa\u5b50\u9879\u76ee Silverlight3dAppContent \u65f6\u9047\u5230\u95ee\u9898\u3002\u65e0\u6cd5\u627e\u5230\u6307\u5b9a\u7684\u6a21\u677f\u3002\u8bf7\u68c0\u67e5\u5b8c\u6574\u8def\u5f84\u662f\u5426\u6b63\u786e\u3002<\/p>\n<p><a href=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_suberror.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_suberror-300x117.jpg\" alt=\"\" title=\"SL53D_suberror\" width=\"300\" height=\"117\" class=\"alignnone size-medium wp-image-1994\" srcset=\"http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_suberror-300x117.jpg 300w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_suberror.jpg 501w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u51e0\u5ea6\u5d29\u6e83\uff0c\u4f46\u6211\u8fd8\u5f97\u5f85\u5979\u5982\u521d\u604b\u2026\u2026\u8fd9\u662f\u4ec0\u4e48\u95ee\u9898\u2026\u2026\u8d76\u7d27google\uff0c\u53c8\u53d1\u73b0\u4e86\u95ee\u9898\uff0c\u7f3a\u5c11XNA Game Studio 4.0\uff0c\u771f\u662f\u4f24\u4e0d\u8d77\u554a\uff0c\u8d76\u7d27google\u4e0b\u8f7d\u5730\u5740\uff0c\u88c5\u4e0a\u3002\uff08\u5fae\u8f6f\u4e0b\u8f7d\u5730\u5740\uff1ahttp:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=23714\uff09<\/p>\n<p><a href=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_XNA.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_XNA-300x217.jpg\" alt=\"\" title=\"SL53D_XNA\" width=\"300\" height=\"217\" class=\"alignnone size-medium wp-image-1995\" srcset=\"http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_XNA-300x217.jpg 300w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_XNA.jpg 514w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u56db\u3001\u6df1\u5165\u6298\u817e\u8bb0<\/p>\n<p>\u7ecf\u8fc7\u4e0a\u9762\u7684\u6298\u817e\uff0c\u80fd\u65b0\u5efaSL \u76843D\u9879\u76ee\u4e86\uff0c\u6309\u4e86\u4e0bF5\uff0c\u7ed3\u679c\u53c8\u6765\u9519\u8bef\u4e86\uff0cError 1 Compile error -2147024770<br \/>\n(0, 0): error : Unknown compile error (check flags against DX version) (myfile.slfx)\u3002<\/p>\n<p><a href=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_comperror.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_comperror-300x35.jpg\" alt=\"\" title=\"SL53D_comperror\" width=\"300\" height=\"35\" class=\"alignnone size-medium wp-image-1997\" srcset=\"http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_comperror-300x35.jpg 300w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_comperror-1024x122.jpg 1024w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_comperror.jpg 1145w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u6211\u90a3\u4e2a\u660f\u8ff7\u554a\uff01\u7ee7\u7eedgoogle\uff0c\u53d1\u73b0\u662f\u7f3a\u5c11DirectX\u7684\u76f8\u5173\u8fd0\u884c\u5e93\uff08XP\u53ef\u80fd\u6ca1\u6709\u8fd9\u4e2a\u95ee\u9898\uff0cWin 7\u4f30\u8ba1\u4f1a\u9047\u5230\uff09\uff0cgoogle\uff0cgoogle\uff0c\u6551\u547d\u7684\u5927\u795e\uff0c\u5979\u544a\u8bc9\u6211\uff0c\u9700\u8981\u53bb http:\/\/www.microsoft.com\/download\/en\/details.aspx?id=8109 \u4e0a\u7ed9\u4e0b\u4e00\u4e2a\u53eb\u201ddirectx_Jun2010_redist.exe\u201c\u7684\u5b89\u88c5\u5305\uff0c\u89e3\u538b\uff0c\u5b89\u88c5\u4e0b\u3002\u597d\u5427\uff0c\u7167\u505a\uff01\u7f16\u8bd1\u7684\u9519\u8bef\u603b\u7b97\u89e3\u51b3\u4e86\u3002<\/p>\n<p>\u672c\u4ee5\u4e3a\u80fd\u6b63\u786e\u51fa\u6765\u7ed3\u679c\u4e86\uff0c\u4f46\u80dc\u5229\u4f3c\u4e4e\u8fd8\u5728\u5f7c\u5cb8\uff01<\/p>\n<p><a href=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_GPU.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_GPU-300x118.jpg\" alt=\"\" title=\"SL53D_GPU\" width=\"300\" height=\"118\" class=\"alignnone size-medium wp-image-1996\" srcset=\"http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_GPU-300x118.jpg 300w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_GPU.jpg 483w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u7ee7\u7eedgoogle\u5927\u795e\uff0c\u53c8\u6765\u89e3\u51b3\u65b9\u6cd5\u4e86\u3002<\/p>\n<p>1\u3001\u5728Silverlight\u9879\u76ee\u5c5e\u6027\u4e2d\uff0c\u9009\u4e2d\u201c\u5141\u8bb8\u5728\u6d4f\u89c8\u5668\u5916\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u201c\u548c\u201d\u5728\u6d4f\u89c8\u5668\u5185\u8fd0\u884c\u65f6\u9700\u8981\u63d0\u5347\u7684\u4fe1\u4efb\u201c\uff0c\u8fd9\u65f6\u9879\u76ee\u7684Properties\u76ee\u5f55\u4e0b\u5c06\u4ea7\u751f\u5bf9\u5e94\u7684OutOfBrowserSettings.xml\u548cInBrowserSettings.xml\u4e24\u4e2a\u6587\u4ef6\uff0c\u800c\u540e\u7eed\u6b65\u9aa4\u7684\u8bbe\u7f6e\u5c06\u6539\u53d8\u8fd9\u4e24\u4e2a\u6587\u4ef6\u7684\u5185\u5bb9\u3002<\/p>\n<p>2\u3001\u70b9\u51fb\u201c\u6d4f\u89c8\u5668\u5916\u8bbe\u7f6e\u201d\uff0c\u52fe\u9009\u201c\u4f7f\u7528GPU\u52a0\u901f\u201d\u4e0e\u201c\u5728\u6d4f\u89c8\u5668\u4e4b\u5916\u8fd0\u884c\u65f6\u9700\u8981\u63d0\u5347\u7684\u4fe1\u4efb\u201d \uff0c\u4ee5\u4fdd\u8bc1\u4f7f\u7528GPU\u52a0\u901f\uff0c\u5982\u679c\u6b64\u4e24\u9879\u4e0d\u9009\uff0c\u5219\u4f1a\u51fa\u73b0RenderModeReason.GPUAccelerationDisabled\u7684\u60c5\u51b5\u3002<\/p>\n<p><a href=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_GPUSolution.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_GPUSolution-300x202.jpg\" alt=\"\" title=\"SL53D_GPUSolution\" width=\"300\" height=\"202\" class=\"alignnone size-medium wp-image-1998\" srcset=\"http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_GPUSolution-300x202.jpg 300w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_GPUSolution-1024x691.jpg 1024w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_GPUSolution.jpg 1123w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>3\u3001\u73b0\u5728\u6211\u4eec\u9700\u8981\u5c06\u7b2c\u4e00\u6b65\u751f\u6210\u7684OutOfBrowserSettings.xml\u548cInBrowserSettings.xml\u4e24\u4e2a\u6587\u4ef6\u52a0\u5165\u5230\u751f\u6210\u7684XAP\u6587\u4ef6\u5185\u5bb9\u4e2d\uff0c\u5177\u4f53\u505a\u6cd5\u662f\u5728\u9879\u76ee\u4e2d\u5206\u522b\u9009\u62e9\u4e24\u4e2a\u6587\u4ef6\uff0c\u5728\u5176\u5c5e\u6027\u4e2d\u7684\u201c\u751f\u6210\u64cd\u4f5c\u201d\u9009\u62e9\u4e3a\u201c\u5185\u5bb9\u201d\u3002<\/p>\n<p><a href=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_IBS.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_IBS-138x300.jpg\" alt=\"\" title=\"SL53D_IBS\" width=\"138\" height=\"300\" class=\"alignnone size-medium wp-image-1999\" srcset=\"http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_IBS-138x300.jpg 138w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_IBS.jpg 287w\" sizes=\"auto, (max-width: 138px) 100vw, 138px\" \/><\/a><\/p>\n<p>4\u3001\u6700\u540e\u7531\u4e8eSilverlight 5\u6b63\u5f0f\u7248\u8003\u8651\u5230\u5ba2\u6237\u7aef\u73af\u5883\u7684\u5dee\u5f02\uff08\u5305\u62ec\u6709\u65e0\u663e\u5361\u3001\u663e\u5361\u662f\u5426\u652f\u63013D\u52a0\u901f\u7b49\u591a\u79cd\u60c5\u51b5\uff09\uff0c\u52a0\u5165\u4e86\u5bf9\u6d4f\u89c8\u5668\u51853D\u5185\u5bb9\u7684\u663e\u793a\u6743\u9650\u7ba1\u7406\uff0c\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u6839\u636e\u5ba2\u6237\u7aef\u5b9e\u9645\u60c5\u51b5\u63d0\u793a\u4f7f\u7528\u8005\u6253\u5f00\u5bf9\u672c\u7f51\u7ad9\u76843D\u663e\u793a\u6743\u9650\u3002\u4ee3\u7801\u5982\u4e0b\uff08\u6ce8\uff1a\u6700\u597d\u662f\u6dfb\u52a0\u57283D\u5c55\u73b0\u7684InitializeComponent();\u540e\u9762\uff09\uff1a<\/p>\n<pre class=\"brush: c#\">\r\nif (GraphicsDeviceManager.Current.RenderMode != RenderMode.Hardware)\r\n{ string message;\r\n\r\nswitch (GraphicsDeviceManager.Current.RenderModeReason)\r\n{ case RenderModeReason.GPUAccelerationDisabled:\r\nmessage = &quot;\u663e\u793a\u5f02\u5e38\u63cf\u8ff0\uff1a3D\u52a0\u901f\u88ab\u7981\u7528\uff01\\n\\n\u89e3\u51b3\u65b9\u6cd5\uff1a\u8bf7\u8054\u7cfb\u7ad9\u957f\u542f\u7528\u672c\u9875\u9762\u7684\u663e\u53613D\u52a0\u901f\u53c2\u6570\u3002&quot;;\r\n\r\nbreak; case RenderModeReason.SecurityBlocked:\r\nmessage = &quot;\u663e\u793a\u5f02\u5e38\u63cf\u8ff0\uff1aSilverlight\u9ed8\u8ba4\u5b89\u5168\u9009\u9879\u963b\u6b62\u4e86\u8be5\u7ad9\u70b9\u76843D\u663e\u793a\uff01\\n\\n\u89e3\u51b3\u65b9\u6cd5\uff1a&quot;\r\n+ &quot;\\n1.\u5728\u672c\u9875\u9762\u70b9\u51fb\u9f20\u6807\u53f3\u952e;&quot;\r\n+ &quot;\\n2.\u9009\u62e9\u201cSilverlight\u201d;&quot;\r\n\r\n+ &quot;\\n3.\u5728\u5f39\u51fa\u7684\u201cMicrosoft Silverlight \u914d\u7f6e\u201d\u5bf9\u8bdd\u6846\u4e2d\u9009\u62e9\u201c\u6743\u9650\u201d\u9009\u9879\u5361;&quot;\r\n+ &quot;\\n4.\u627e\u5230\u672c\u7ad9\u70b9\u57df\u540d\u540e\u5141\u8bb83D\u5b89\u5168\u7b56\u7565;&quot;\r\n+ &quot;\\n5.\u70b9\u51fb\u201c\u786e\u8ba4\u201d\u6309\u94ae;&quot;\r\n+ &quot;\\n6.\u5237\u65b0\u672c\u9875\u9762&quot;; break;\r\n\r\ncase RenderModeReason.Not3DCapable:\r\nmessage = &quot;\u663e\u793a\u5f02\u5e38\u63cf\u8ff0\uff1a\u6ca1\u6709\u627e\u52303D\u663e\u5361\uff01\\n\\n\u89e3\u51b3\u65b9\u6cd5\uff1a\u8bf7\u66f4\u6362\u663e\u5361\u6216\u5b89\u88c5\u5408\u9002\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002&quot;; break; case RenderModeReason.TemporarilyUnavailable:\r\nmessage = &quot;\u663e\u793a\u5f02\u5e38\u63cf\u8ff0\uff1a\u60a8\u7684\u663e\u5361\u6682\u65f6\u65e0\u6cd5\u4f7f\u7528\uff01\\n\\n\u89e3\u51b3\u65b9\u6cd5\uff1a\u8bf7\u91cd\u542f\u6d4f\u89c8\u5668\u540e\u5237\u65b0\u672c\u9875\u9762\u3002&quot;; break; default:\r\nmessage = &quot;\u663e\u793a\u5f02\u5e38\u63cf\u8ff0\uff1a\u672a\u77e5\u9519\u8bef\uff01&quot;; break;\r\n} MessageBox.Show(message, &quot;3D\u663e\u793a\u5f02\u5e38&quot;, MessageBoxButton.OK);\r\n}}\r\n<\/pre>\n<p>5\u3001\u73b0\u5728\u5c06Silverlight3dWeb\u8bbe\u7f6e\u4e3a\u542f\u52a8\u9879\u76ee\uff0c\u5c06Silverlight3dAppTestPage.html\u8bbe\u7f6e\u4e3a\u8d77\u59cb\u9875\u3002\u73b0\u5728\u6211\u4eec\u518d\u6b21\u6309\u4e0bF5\u8fdb\u884c\u8c03\u8bd5\u65f6\uff0c\u5c06\u51fa\u73b0\u65cb\u8f6c\u76843D\u7acb\u65b9\u4f53\uff08\u5982\u4e0b\u56fe\u6240\u793a\uff09\u3002<\/p>\n<p><a href=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_success.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.jixin.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_success-300x200.jpg\" alt=\"\" title=\"SL53D_success\" width=\"300\" height=\"200\" class=\"alignnone size-medium wp-image-2000\" srcset=\"http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_success-300x200.jpg 300w, http:\/\/www.ntxz.net\/wp-content\/uploads\/2012\/09\/SL53D_success.jpg 910w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u603b\u7ed3\uff1a<\/p>\n<p>\u88c5\u5230\u6700\u540e\uff0c\u6211\u662f\u5f88\u65e0\u8bed\u4e86\uff0c\u592a\u9ebb\u70e6\u4e86\uff01\u4e0d\u8fc7\u8fd8\u597d\uff0c\u6700\u7ec8\u662f\u6210\u529f\u642d\u5efa\u51fa\u4e86\u73af\u5883\u3002\u4e0b\u4e00\u6b65\u5f97\u7814\u7a76\u600e\u4e48\u5c31XNA\u5199\u4ee3\u7801\u4e86\uff0c\u7ee7\u7eed\u82e6\u903c\u2026\u2026<\/p>\n<p>\u8fd8\u662f\u65e0\u5fc3\u641e\u79d1\u7814\u554a\uff01\u70e6\u8e81\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9879\u76ee\u7ec4\u73b0\u5728\u8981\u505a\u4e00\u4e2a\u4e09\u7ef4\u7684\u9879\u76ee\uff0c\u6211\u4eec\u51e0\u4e2a\u7ae5\u978b\uff0c\u8ba8\u8bba\u4e86N\u4e45\uff0c\u6700\u540e\u51b3\u5b9a\u57fa\u4e8eSilverlight 5\u505a3D\u5f00\u53d1\u3002\u8bf4\u5230 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[544,543,202,542],"class_list":{"0":"post-1989","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-22","7":"tag-3d","9":"tag-silverlight","10":"tag-silverlight5"},"views":1441,"_links":{"self":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/1989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1989"}],"version-history":[{"count":1,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/1989\/revisions"}],"predecessor-version":[{"id":2001,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=\/wp\/v2\/posts\/1989\/revisions\/2001"}],"wp:attachment":[{"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1989"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ntxz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}