Maya render viewport6/2/2023 ![]() It is also possible to access the device level handle of a texture to allow users to directly use the resource. ![]() The supported texture types are described by MTextureType and the environment mapping types by MEnvironmentMapType. A texture is described by MTextureDescription and the list of available raster formats is described by MRasterFormat. All textures are managed by the renderer. The main interfaces allow for acquiring a file texture from disk or creating a texture from a block of system memory. Textures are resources that can be acquired and released from the renderer. ![]() The renderer is a singleton object which may be accessed through MRenderer::theRenderer(). It presents interfaces for resource management as well render logic control. This is the main interface for the Viewport 2.0 renderer. Not only does Maya attempt to optimize access to device state in order to avoid expensive read-backs and redundant state changes, using this interface also helps Maya keep track of the current state to avoid corruption. Although it is, of course, possible for users to modify state directly, it is recommended that all state management go through this interface. The state manager can be retrieved from the draw context instance in order to access and/or modify GPU state in an efficient and controlled manner. This class can be used to get and set draw state. MDrawContext stores all draw context information for use by classes that override the actual draw ( MPxDrawOverride and MPxShaderOverride). Additional registrations override existing registrations. The same proxy may be registered against multiple node types, but each node type may only have one associated proxy class. This is where implementations of proxy override classes must be registered against a specific node type in Maya. The framework classes give plugins access to Maya’s internal rendering framework objects, including state and resource management, rendering context and override management.
0 Comments
Leave a Reply. |