Using DirectX 11 with Viewport 2.0

 
 
 

You can choose to run Viewport 2.0 using the OpenGL or DirectX rendering engine.

Selecting DirectX as your rendering engine (Method 1)

  1. Select Window > Settings/Preferences > Preferences > Display and set the Rendering engine to DirectX 11.
    ImportantTo use the DirectX rendering engine, you must use Windows 64-bit and a DirectX 11 compatible graphics card.
  2. Select Renderer > Viewport 2.0 in the panel menus to switch your workspace to Viewport 2.0.
    NoteYour workspace heads up display should now indicate Viewport 2.0 (DirectX 11).
  3. 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).

  1. Set MAYA_VP2_DEVICE_OVERRIDE to VirtualDeviceDx11 to always use DirectX 11 when rendering in Viewport 2.0.
TipSet this environment variable to VirtualDeviceGL to always use OpenGL when rendering in Viewport 2.0.
NoteUnset this environment variable to use the user preference again to select your rendering engine.

Creating a DirectX shader

  1. Select Window > Rendering Editors > Hypershade to open the Hypershade window. In the Create bar, select Maya > Surface > DirectX 11 Shader.

    A DirectX 11 Shader is created, with the MayaUberShader.fx automatically loaded.

  2. Press 6 for textured mode and 7 to use scene lighting.
TipBoth 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.