DirectX 11 Shader èç¹çå±æ§ï¼æå®äº MayaUberShader çè²å¨æ件ã
è¦ä½¿ç¨è¯¥çè²å¨ï¼æ¨å¿
é¡»å¨ Viewport 2.0 ç DirectX 11 ç¯å¢ä¸å·¥ä½ï¼å¹¶å¯ç¨ dx11shader.mll æ件ãæå
³è¯¦ç»ä¿¡æ¯ã
æ¨å¯ä»¥å¨ Hypershade å建æ ä¸æ¾å° DirectX 11 Shaderãå建çè²å¨åï¼ä¼èªå¨å è½½ MayaUberShader.fx æ件ã
dx11Shader.mll æ件å¯ä½¿æ¨å¨ Maya Viewport 2.0 ä¸å 载并æ¥çèªå·±ç HLSL çè²å¨ãä½¿ç¨ Hypershade å建 DirectX 11 shader æ¶ï¼ä¼èªå¨è¿æ¥ MayaUberShader.fxo æ件ï¼ä½æ¯ï¼æ¨ä¹å¯ä»¥æ¹ä¸ºå è½½èªå®ä¹ HLSL çè²å¨ãæ¤å¤ï¼<maya directory>\presets\HLSL11\examples\ ä¸æä¾äºå
¶ä»ç¤ºä¾ HLSL çè²å¨ã
éæ© DirectX ä½ä¸ºæ¸²æå¼æï¼æ¹æ³ 1ï¼
éæ©âçªå£ > 设置/é¦é项 > é¦é项 > æ¾ç¤ºâ(Window > Settings/Preferences > Preferences > Display)并å°â渲æå¼æâ(Rendering engine)设置为âDirectX 11âã
éè¦ä¿¡æ¯è¥è¦ä½¿ç¨ DirectX 渲æå¼æï¼æ¨å¿
é¡»ä½¿ç¨ 64 ä½ç Windows åå¯å
¼å®¹ DirectX 11 çæ¾å¡ã
å¨é¢æ¿èåä¸éæ©â渲æå¨ > Viewport 2.0â(Renderer > Viewport 2.0)å°å·¥ä½åºåæ¢å° Viewport 2.0ã
注ææ¨çå·¥ä½åºå¹³è§æ¾ç¤ºä»ªç°å¨åºæ示 Viewport 2.0 (DirectX 11)ã
éæ©âçªå£ > 设置/é¦é项 > æ件管çå¨â(Window > Settings/Preferences > Plug-in Manager)并å è½½ dx11Shader.mll æ件ã
éæ© DirectX ä½ä¸ºæ¸²æå¼æï¼æ¹æ³ 2ï¼
æ¤ç¯å¢åéå°è¦ç交äºå¼åæ¹å¤çä¼è¯çç¨æ·é¦é项ï¼âçªå£ > 设置/é¦é项 > é¦é项 > æ¾ç¤ºâ(Window > Settings/Preferences > Preferences > Display)ï¼ï¼ä½¿ç¨ -hw2 é项ï¼ã
å° MAYA_VP2_DEVICE_OVERRIDE 设置为 VirtualDeviceDx11 å¯å¨ Viewport 2.0 ä¸æ¸²ææ¶å§ç»ä½¿ç¨ DirectX 11ã
æ示å°æ¤ç¯å¢åé设置为 VirtualDeviceGL å¯å¨ Viewport 2.0 ä¸æ¸²ææ¶å§ç»ä½¿ç¨ OpenGLã
注æåæ¶è®¾ç½®è¯¥ç¯å¢åéå¯å次使ç¨ç¨æ·é¦é项æ¥éæ©æ¸²æå¼æã
å建 DirectX çè²å¨
éæ©âçªå£ > 渲æç¼è¾å¨ > Hypershadeâ(Window > Rendering Editors > Hypershade)ï¼ä»¥æå¼âHypershadeâçªå£ãå¨âå建â(Create)æ ä¸ï¼éæ©âMaya > æ²é¢ > DirectX 11 Shaderâ(Maya > Surface > DirectX 11 Shader)ã
å°å建 DirectX 11 Shaderï¼åæ¶èªå¨å è½½ MayaUberShader.fxã
æ 6 以è·å¾çº¹ç模å¼ï¼æ 7 以使ç¨åºæ¯ç
§æã
æ示纹çåé纹ç模å¼ååæ¯æï¼ä¸ææç¯å
模å¼ï¼â使ç¨ææç¯å
â(Use All Lights)ãâ使ç¨éå®ç¯å
â(Use Selected Lights)ãâä¸ä½¿ç¨ç¯å
â(Use No Lights)åâ使ç¨é»è®¤ç
§æâ(Use Default Lighting)ï¼ååæ¯æã
温馨提示:内容为网友见解,仅供参考