Go to: Synopsis. Return value. MEL examples.

Synopsis

oceanNurbsPreviewPlane xresolution, yresolution, textureName

This mel procedure creates a poly plane with an expression to offset the uvs based on an input surface texture or oceanShader node. The input texture may be modified and the plane will interactively update. The generated expression provides an example of how one could use the colorAtPoint command to create a displacement mapping effect. Note that for preview uses the heightField node is more efficient for this general task, although it does not modify geometry that can be rendered or output. If one uses this for an ocean shader, the mapping is determined by the position of the plane, such that translating the plane moves it over the stationary ocean displacement. For surface textures the mapping is the same as the texture swatch( uv 0-1).

Return value

None

Arguments

Variable Name Variable Type Description
None.

MEL examples

 oceanNurbsPreviewPlane 10 10 oceanShader1;
 // Creates 10x10 nurbs surface with cvs displaced by ocean surface //