Rendering Modes and Rendering Limits
 
 
 

A GraphicsWindow instance can be in any of several different rendering modes. The various rendering modes may be combined in a large number of ways. For example, it is possible to request Gouraud-shaded z-buffered lines, or textured flat-shaded triangles. The actual output will depend on the capabilities of the underlying device driver.

Each GraphicsWindow has a master mode (called the rendering limit) and a current mode. The current mode is always a "subset" of the master mode, in that any limits imposed by the master mode are forced onto the current mode. For example, if the master mode restricts primitives to wire-frame rendering, then setting the current mode to filled polygons will have no effect. On the other hand, if the master mode restricts rendering to flat shading, then the current mode can be set to wire-frame to force polygons to render at the wire-frame level.

The rendering mode used by a viewport is accessed using a call to GraphicsWindow::getRndMode(). The rendering mode is a subset of the rendering limits, retrieved by GraphicsWindow::getRndLimits() and set by GraphicsWindow::setRndLimits().

Setting the rendering limits is used in communication between the various parts of 3ds Max that handle the display of objects. For example, setting this limit to GW_POLY_EDGES and then drawing a polygon won't result in a polygon drawn with edges. It only sets a flag that indicates that

A list of the valid rendering limit flags is provided in the topic List of Rendering Limits .