Only Maya 2D File textures are supported. Procedural textures and 3D textures must be converted to files before exporting them.
Maya 2D textures are mapped through the Place2DTexture node. Some properties of this node are exported by Maya2OSG.
Coverage, Translate Frame and Rotate Frame are supposed to be left in their default values (1 for Coverage, 0 for the others). Stagger is supposed to be unchecked.
OpenGL texture matrix is constructed from the translation defined in Offset, the rotation defined in Rotate UV and the scale defined in Repeat UV.
Mirror UV and Wrap UV are correctly interpreted and translated into the corresponding OpenGL wrapping mode.
The behaviour outside texture space is defined by the configuration parameter
-texClampMode
. Allowed values are EDGE or COLOR, for repeating the texture edge or filling with Maya default color respectively. OpenGL filtering type is
LINEAR_MIPMAP_LINEAR
for minification and
LINEAR
for magnification unless Maya filter type is Off, in which case
NEAREST
is used for both minification and magnification. OpenGL TexEnv is taken from the parameters of MEL command
maya2osg