You can choose to run Viewport 2.0 using the OpenGL or DirectX rendering engine.
Selecting DirectX as your rendering engine (Method 1)
- Select Window > Settings/Preferences > Preferences > Display and set the Rendering engine to DirectX 11.
Important: To use the DirectX rendering engine, you must use Windows 64-bit and a DirectX 11 compatible graphics card.
- Select Window > Settings/Preferences > Plug-in Manager and load the dx11Shader.mll plug-in.
Selecting DirectX as your rendering engine (Method 2)
This environment variable overrides the user preference in Window > Settings/Preferences > Preferences > Display for both interactive and batch sessions (using the -hw2 option).
- Set MAYA_VP2_DEVICE_OVERRIDE to VirtualDeviceDx11 to always use DirectX 11 when rendering in Viewport 2.0.
Fastpath: Set this environment variable to VirtualDeviceGL to always use OpenGL when rendering in Viewport 2.0.
Note: Unset this environment variable to use the user preference again to select your rendering engine.
Creating a DirectX shader
- Select Window > Material/Texture Baking Editors > Hypershade to open the Hypershade window. In the Create bar, select Maya > Surface > DirectX 11 Shader.
A DirectX 11 Shader is created, with AutodeskUberShader.fxo automatically loaded.
- Press 6 for textured mode and 7 to use scene lighting.
Tip: Both textured and non-textured modes are supported and all light modes (Use All Lights, Use Selected Lights, Use No Lights and Use Default Lighting) are supported.