XGen
Overview概述
Maya XGen is a geometry instancer that lets you populate the surface of polygon meshes with an arbitrary number of primitives either randomly or uniformly placed. XGen lets you procedurally create and style hair, fur and feathers for characters. For set dressing, XGen lets you quickly populate large-scale environments, including grass savannas, forests, rocky landscapes, and debris trails.
Maya XGen是一種幾何體替代技術。通過它,用戶可以在多邊形物體上創建隨機分布或者均勻分布的巨量物體單元(Primitive)。使用XGen,我們可以通過程序來為角色創建毛髮、毛和羽毛,並進行梳理和造型設計。還可以使用XGen來創建諸如:草原、林地、山石及石子小路等等場景。
Primitive Types物體單元類型
Splines控制曲線
Spline primitives are curves made up of two or more segments. Use Splines for fur,
simple stiff shapes, and complex ribbon shapes like long or curly hair.
Spline Primitives是由兩節或兩節以上線段組成的曲線。Spline適用於製作短毛、簡單堅硬物體、長毛、捲髮或類似的複雜織物。
Cards無厚度面
Card primitives define individual NURBS planes that attached to the patch at the plane pivot point.
無厚度面片使用NURBS面做單元,創建後,其Pivot中心會「粘貼」在Patch(即XGen生長面)上。
NOTE: This type is currently not supported.
注意當前還不支持這種類型
Sphere球體
Sphere primitives define a sphere with controllable length, width, and depth.
選擇Sphere,意味著使用可控長度、寬度和深度的球體做Primitives單元
NOTE: This type is currently not supported.
注意:當前還不支持這種類型。
Archives文檔
Archive primitives are instances of Alembic-based geometry. You specify the archive geometry you want to instance by selecting an XGen archive (.xarc) file.
Archive方式是一種Alembic-Based幾何體替代方式,你可以給Archive指定一個XGen Archive(.xarc)文件
NOTE: This type is currently not supported.
注意:當前還不支持這種類型。
XGen Splines Quickstart快速指南
This section will guide you through the creation of a basic XGen spline scene.
這個章節指導你創建一個簡單的XGen Spline(XGen控制曲線)場景。
Before we proceed, it is useful to unload the xgenMR.py plugin as this plugin assumes XGen is being used with Mental Ray and will result in more steps on our part to 「undo」 its effect. From the main menu, select Windows > Settings/Preferences > Plug-in Manager. Find xgenMR.py and unload it. If you don』t use Mental Ray, we recommend also turning off autoload.
在繼續講解之前,應該先卸載XgenMr.py插件,因為這個插件指定Xgen使用Mental Ray渲染器,導致我們需要用更多步驟去取消這個預設。從主菜單,選擇Windows > Settings/Preferences > Plug-in Manager.找到XgenMR.py,然後卸載它。如果你用不MentalRay渲染器,建議你關掉自動載入。
Start with an empty scene and add a polygon plane at the origin 25 x 25 Maya units in size. You can do this 「manually」, or run the following MEL:
開啟一個空場景,創建一個25 X 25 Maya單位的多邊形平面,你可以手動創建這些,或者運行下面MEL腳本
file -f -new; polyPlane -w 25 -h 25 -sx 10 -sy 10 -ax 0 1 0 -cuv 2 -ch 1;
Bring up the XGen window (aka XGen description editor). You can either click the Open the XGen button on the XGen shelf (first button from the left), or select XGen > Open the XGen Window from the main menu (Maya 2015) or select Generate
> XGen Editor from the Modeling menu set (Maya 2016). Alternatively, you can run the MEL command XgCreateDescriptionEditor.開啟XGen窗口(也叫XGen Description editor)。你可以通過點擊XGen工具架上的按鈕(最左邊的按鈕)打開XGen,或者選擇從Maya2015的主菜單中選擇XGen > Open the XGen