How to use the DirectX
Extensions for Alias Maya
Once you have the DirectX Extensions for Alias Maya
installed, here is how to use them.
-
Create a polygon cube:
Create Menu -> Polygon Primitives -> Cube
-
Assign the DirectX material to the Cube:
Right Click on the Cube
Materials -> Assign New Material -> Direct XShader
-
Open a DirectX Viewer window so you can see how the cube
will look in DirectX:
DirectX Menu -> Viewers... -> Floating
-
Bring up the attributes of the Direct XShader material:
Right Click on the Cube
Materials -> Materials Attributes...
-
In the Attribute Editor, associate a .fx file with the
Cube:
Attribute Editor -> DirectXShader1 -> Direct3D -> Select and Customize
FX-File
-
Use the wood.fx shader that comes with Nvidia's SDK. I
found the .fx files that ship with the Microsoft DirectX 9.0 SDK did not work:
FX Editor -> Open -> C:\Program Files\NVIDIA Corporation\SDK
9.0\MEDIA\Hlsl\wood.fx
-
Close the FX Editor:
FX Editor -> Close
-
Export .x file:
DirectX Menu -> Export All -> Desktop -> File name: junk.x -> Save
-
Accept default settings for ExportOptions dialog:
ExportOptions -> OK
-
Load junk.x file with DirectX MeshView to verify
results:
Start -> Run... -> "C:\Program
Files\Microsoft DirectX 9.0 SDK (April 2005)\Utilities\Bin\x86\MView.exe"
"C:\Documents and Settings\<USERNAME>\Desktop\junk.x"
For more information on the Microsoft Maya Plug-in,
see:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c_dec_2004/directx/directxsdk/Tools/Content/MayaFXExporter.asp
Questions/Comments/Tips?
Email me at
gin@davidlenihan.com/ORIGINAL_davidlenihan.com