Maya
From DigitalBlacksmith
Contents |
[edit] Maya 8.0 - Tips Tricks Tutorials
Maya is a powerful beast. This page is dedicated to helped become its master.
[edit] General Tutorials
Pretty good intro tutorial from NYU
http://www.fromthedarkness.net/Tutorials/Tutorials.htm
http://www.tinkering.net/tutorials.html
[edit] Controlling the Camera
View->Look At Selected
[edit] MEL and Python Scripts
Click here for my page on using MEL and Python with Maya..
[edit] Texturing
Texturing a Model with Multiple Textures
http://web.alfredstate.edu/ciat/tutorials/TexturingPolygons.htm
A YouTube video on UVs PArt II
http://www.fromthedarkness.net/Tutorials/C_texturing_001.pdf
[edit] Valve Source
Tutorial on Exporting From Maya 8.0 to Valve (using digitalblacksmith script)
- This tutorial uses my version of Prall's script (use at your own risk)
Tutorial on Exporting From Maya 8.0 to Valve (using Prall's script)
Tutorial on exporting from Maya 8.0 to Valve using PSD Networks (using Prall's script)
An entire site dedicated to Valve Source modeling with Maya
kobojnk's tutorial for Maya to Valve Model Exporting
[edit] Deleting Extra Shape Nodes
The exporter will do funny things when extra shape nodes are laying around. Here's a way to find them and kill them:
1. Select the entire model
2. Open the hypergraph
3. Go to Graph menu, Input and Output connections. You should get something like this:
4. You can now spot them (unconnected and subdued)
5. Drag select the orphans.
6. Delete them.
[edit] Specific Tutorials
My Tutorial on Exporting from Maya to VRML2
http://www.modmap.ch/tutorial_modelling_tex_src.htm
- This one looks promising
Making Hoses and other curved cylinders
- Might need to convert using Modify->Convert
http://www.moddb.com/engines/3/source/tutorials/25018/maya-to-source-a-model-exportation-guide
[edit] Quick Reference
[edit] Misc
[edit] DirectX Models
The DirectX SDK used to provide exporters for Maya 6 and 7...what about version 8 and above?
Well, you can compile the Maya 6/7 plugin code that comes with the DirectX SDK:
1. Open up the Maya PLugin Source in Visual studio:
C:\Program Files\Microsoft DirectX SDK (December 2006)\Utilities\Source\Maya\D3DMaya7ExportX_2003.sln
2. Add the legacy shader support. You'll also have to use this trick to get the shader support to work (and the plugin to load properly)
(from https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1203757&SiteID=1)
Here is a solution I applied based on what I found on the forums - didn't really see a step-by-step solution so this is for those that may need more explanation. This is for Maya 6. Unlimited, but should work the same for 7, etc. 1 - In "C:\Program Files\Microsoft DirectX SDK (February 2007)\Utilities\Source\Maya" you will find a few projects for Maya 6,6.5, and 7. 2- Open the solution that has you Maya version, and search for D3DXCreateEffect in the MayaViewr.cpp file. 3- Include the flag D3DXSHADER_USE_LEGACY_D3DX9_31_DLL by logical or '|' with the flags variable: "dwShaderFlags | D3DXSHADER_USE_LEGACY_D3DX9_31_DLL" 4 - Compile the project, and go to Debug/Release folder to get the new D3DMaya6ExportX.mll file. 5 - Backup your current D3DMaya6ExportX.mll in "C:\Program Files\Microsoft DirectX SDK (February 2007)\Utilities\Bin\PlugIns\Maya\Binary(version)", and copy the new one in its place. Now I am not sure if this works in all situations or if it will cause any problems in the future, but it solved my problem so I am assuming it is correct. Please feel free to correct me if I messed up anything.
3. Under project settings, change the compiler and linker paths (additional include and library directories) to point to your Maya installation's include and lib directories respectively.
4. Build the project. You might have to right click on it in the outline view and hit build
5. Copy the program D3DMaya7ExportX.mll to your Maya plugin directory:
C:\Program Files\Alias\Maya8.0\bin\plug-ins
6. Copy the scripts, icons and such:
(from http://www.adrianwalker.info/writings/Maya7DirectX.html)
1) Copy from C:\Program Files\Microsoft DirectX SDK (October 2006)\Utilities\Bin\x86\dxcc.dll to C:\Program Files\x86\dxcc.dll /* The following three files can be found in the zip file found at http://www.quest3d.com/download/Maya_7.0_X_Exporter.zip instead of searching around through the SDK if you prefer */ 2) Copy from C:\Program Files\Microsoft DirectX SDK (October 2006)\Utilities\Bin\PlugIns\Maya\Binary7\Plug-ins\D3DMaya7ExportX.mll to C:\Program Files\Alias\Maya7.0\bin\plug-ins\D3DMaya7ExportX.mll 3) Copy DirectX.mel, DXMUnitTests.mel, and AEDirectXShaderTemplate.mel from C:\Program Files\Microsoft DirectX SDK (October 2006)\Utilities\Bin\PlugIns\Maya\Binary7\Scripts to C:\Documents and Settings\username\My Documents\maya\7.0\scripts 4) Copy DirectX.xpm and render_DirectXShader.xpm from C:\Program Files\Microsoft DirectX SDK (October 2006)\Utilities\Bin\PlugIns\Maya\Binary7\Icons to C:\Documents and Settings\username\My Documents\maya\7.0\prefs\icons /* If for some reason the directory structure on your system is setup differently than mine (like at your school or workplace), then you can use the commands "internalVar -usd" to see where to put the MEL files and "internalVar -ubd" to see where to put the XPM file. */ 5) Last but not least, you need to load the D3DMaya7ExportX plug-in for Maya by going to Window -> Settings/Preferences -> Plug-in Manager and selecting the box labeled "loaded" to load it then and "autoload" so that it will automatically load whenever Maya starts up.
