Go to: Synopsis. Return value. Keywords. Related. Flags. MEL examples.

Synopsis

hwRender [-acceleratedMultiSampleSupport] [-activeTextureCount] [-camera string] [-currentFrame] [-currentView] [-edgeAntiAliasing uint uint] [-fixFileNameNumberPattern] [-frame float] [-fullRenderSupport] [-height uint] [-imageFileName] [-layer name] [-limitedRenderSupport] [-lowQualityLighting] [-noRenderView] [-notWriteToFile boolean] [-printGeometry] [-renderHardwareName] [-renderRegion uint uint uint uint] [-renderSelected] [-textureResolution uint] [-width uint] [-writeAlpha] [-writeDepth]

hwRender is NOT undoable, queryable, and NOT editable.

Renders an image or a sequence using the hardware rendering engine

Return value

boolean

In query mode, return type is based on queried flag.

Keywords

hardware, rendering

Related

hwRenderLoad

Flags

acceleratedMultiSampleSupport, activeTextureCount, camera, currentFrame, currentView, edgeAntiAliasing, fixFileNameNumberPattern, frame, fullRenderSupport, height, imageFileName, layer, limitedRenderSupport, lowQualityLighting, noRenderView, notWriteToFile, printGeometry, renderHardwareName, renderRegion, renderSelected, textureResolution, width, writeAlpha, writeDepth
Long name (short name) Argument types Properties
-printGeometry(-pg) createquery
Print the geomety objects as they get translated.
-lowQualityLighting(-lql) createquery
Disable lighting evaluation per pixel (fragment). Note: The values passed via the command will override settings stored in the hardware render globals node.
-renderSelected(-rs) createquery
Only renders the selected objects.
-textureResolution(-res) uint createquery
Specify the desired resolution of baked textures.
-frame(-f) float create
Specify the frame to render.
-currentFrame(-cf) createquery
Render the current frame.
-noRenderView(-nrv) createquery
When turned on, the render view is not updated after image computation
-camera(-cam) string createquery
Specify the camera to use. Use the first available camera if the camera given is not found.
-currentView(-cv) createquery
When turned on, only the current view will be rendered.
-edgeAntiAliasing(-eaa) uint uint createquery
Enables multipass rendering. Controls for the number of exposures rendered per frame are provided in the form of two associated flag arguments. The first specifies the sampling algorithm:
  • 0 - Uniform Weighted Grid Sampling
  • 1 - Rotated Grid Super Sampling (RGSS)
  • 2 - Gaussian Weighted Sampling
Use of a sampling method other than the others listed above, will result in use of the default sample method of Uniform Weighted Grid Sampling. The second argument specifies a number of samples to use. For each sampling algorithm there is a fixed set of sample counts available:
  • 0 - Uniform Weighted Grid Sampling
    • 1 Sample
    • 3 Samples
    • 4 Samples
    • 5 Samples
    • 7 Samples
    • 9 Samples
    • 16 Samples
    • 25 Samples
    • 36 Samples
  • 1 - Rotated Grid Super Sampling (RGSS)
    • 1 Sample
    • 4 Samples
    • 5 Samples
  • 2 - Gaussian Weighted Sampling
    • 1 Sample
    • 3 Samples
    • 4 Samples
    • 5 Samples
    • 7 Samples
    • 9 Samples
    • 16 Samples
    • 25 Samples
    • 36 Samples
Using a sampling count other than the allowable options for the given sampling method will result in using the default sample count of 5. The values passed via the command will override settings stored in the hardwareRenderGlobals node.
-writeAlpha(-a) createquery
Read the alpha channel of color buffer and return as tif file.
-writeDepth(-d) createquery
Read the depth buffer and return as tif file.
-renderRegion(-reg) uint uint uint uint createquery
The renderRegion flag pass the render region to the hwRender command. The parameters are 4 integers, indicating left right bottom top of the region.
-width(-w) uint createquery
The width flag pass the width to the hwRender command. If not used, the width is taken from the render globals settings.
-height(-h) uint createquery
The height flag pass the height to the hwRender command. If not used, the height is taken from the render globals settings.
-notWriteToFile(-nwf) boolean createquery
This flag is set to true if the user does not want to write the image to a file. It is set to false, otherwise. The default value of the flag is "false".
-limitedRenderSupport(-lrs) query
This flag when used with query will return whether limited rendering is supported on the current graphics system. Please see the graphics card qualification charts for the current definition of limited support.
-fullRenderSupport(-frs) createquery
This flag may be used in the create or query context. In the create context, it will force the renderer to abort and not render any frames if the hardware is not fully supported. In the query context, it will return whether full quality rendering is supported on the current graphics system. Please see the graphics card qualification charts for an explanation of limited support.
-acceleratedMultiSampleSupport(-ams) query
This flag when used with query will return whether the graphics supports hardware accelerated multi-sampling.
-renderHardwareName(-rhw) query
This flag will create a graphics context and return the name of the graphics hardware being used. The graphics hardware is determined by creating an off screen buffer and querying the GL_RENDERER string from OpenGL. If the off screen buffer cannot be created an empty string is returned.
-imageFileName(-ifn) createquery
This flag let people query the image name for a specified frame. The frame can be specified using the "-frame" flag. When no "-frame" is used, the current frame number is used.
-fixFileNameNumberPattern(-fnp) createquery
This flag allows the user to take the hardwareRenderGlobals filename as the initial filename pattern, fix the frame number pattern in the filename in a unique way, returns the new filename pattern. This does not change the hardwareRenderGlobals's filename.
-activeTextureCount(-atc) query
This flag when used with query will return the number of textures that have been bound to the graphics by the hardware renderer.
-layer(-l) name createquery
Render the specified render layer. Only this render layer will be rendered, regardless of the renderable attribute value of the render layer. The layer name will be appended to the output image file name. The specified render layer becomes the current render layer before rendering, and remains as current render layer after the rendering.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// Create a poly sphere.
polySphere;
// Render it
hwRender;
// Render the region where left=20, right=50, bottom=30, top=60.
// And do not write the output to a file.
//
hwRender -renderRegion 20 50 30 60 -notWriteToFile 1;
// Render with the specified width and height.
//
hwRender -width 100 -height 200;
// Returns the imageFileName for image frame 11.
//
hwRender -imageFileName -frame 11;
// Returns the imageFileName for current frame.
//
hwRender -imageFileName;
// Returns a version of the image file name after its number pattern
// being represented in a unique way.
//
hwRender -query -fixFileNameNumberPattern;
// Render the specified render layer.
hwRender -layer layer1;