Inheritance diagram for I3DRenderHelper:

Public Member Functions | |
| virtual MCCOMErr MCCOMAPI | SetScene (I3DShScene *scene)=0 |
| virtual MCCOMErr MCCOMAPI | SetCamera (I3DShCamera *camera)=0 |
| virtual MCCOMErr MCCOMAPI | SetRenderSize (uint32 width, uint32 height, real pixelAspectRation=1.0f)=0 |
| virtual MCCOMErr MCCOMAPI | SetBufferNeeds (RenderFilterNeeds &needs)=0 |
| virtual MCCOMErr MCCOMAPI | EnablePostRendering (boolean enable)=0 |
| virtual MCCOMErr MCCOMAPI | SetTiling (real tileWidth, real tileHeight)=0 |
| virtual void MCCOMAPI | StartNetworkRendering (TMCNetStream &stream, int32 syncThreadID)=0 |
| virtual MCCOMErr MCCOMAPI | RenderArea (I3DRenderingCallbacks *callbacks, boolean synch=true, int32 synchThreadID=0, const TRenderArea *renderArea=NULL)=0 |
| virtual MCCOMErr MCCOMAPI | GetRasterLayer (IShRasterLayer **rasterLayer)=0 |
| virtual MCCOMErr MCCOMAPI | GetGBuffers (TMCCountedPtrArray< IShChannel > &gBuffers)=0 |
| virtual MCCOMErr MCCOMAPI | AbortRendering ()=0 |
| virtual MCCOMErr MCCOMAPI | PauseRendering ()=0 |
| virtual IShParameterComponent *MCCOMAPI | CreateRendererNoAddRef (IDType classID)=0 |
| virtual boolean MCCOMAPI | GetIsInBatchQueue ()=0 |
| virtual boolean MCCOMAPI | IsStillRendering ()=0 |
| virtual void MCCOMAPI | SetAlphaChannelOptions (boolean renderAlpha, boolean usePreMultipledAlpha=false)=0 |
You cannot implement your own RenderHelper. However you can instantiate it to render previews or images. To instantiante a renderHelper, use the following code:
TMCCountedPtr<IMCUnknown> unknown; gComponentUtilities->CreateIUnknown('rhlp','1st ',NULL,&unknown); ThrowIfNil(unknown); TMCCountedPtr<I3DRenderHelper> renderHelper; unknown->QueryInterface(IID_I3DRenderHelper,(void**)&renderHelper); ThrowIfNil(renderHelper);
If you already have a scene document in memory, you can access the renderHelper of the scene by using the following code:
TMCCountedPtr<I3DRenderingModule> renderingModule; scene->GetSceneRenderingModule(&renderingModule); TMCCountedPtr<I3DRenderHelper> renderHelper; renderingModule->GetRenderHelper(&renderHelper);
All the 'set' functions only modify the renderHelper settings and not the sceneRenderingModule settings
|
|
Stops the current rendering if there is one. |
|
|
Create a new renderer that will be used for the next rendering.
|
|
|
Enable/Disable post rendering
|
|
|
Returns an array containing the gBuffers that have been calculated. The order is the order of their identifiers.
|
|
|
Return the current rendering mode |
|
|
Returns the color buffer (must be called within a callback of the rendering)
|
|
|
Returns true as long as the rendering is not finished |
|
|
Pauses the current rendering |
|
||||||||||||||||||||
|
Renders one frame using the current settings
|
|
||||||||||||
|
Call to control the rendering of the alpha channel
|
|
|
Sets the GBuffers that need to be rendered.
|
|
|
Sets the rendering camera.
|
|
||||||||||||||||
|
Sets the size of the production frame ( width,height are in pixel )
|
|
|
Set the scene that will be rendered.
|
|
||||||||||||
|
Sets the size of a tile for the rendering. Note that the actual size of the tiles might be slightly bigger since the renderer will be given a chance to optimize the tile size for best performance.
|
|
||||||||||||
|
Perform a network rendering session. This function is used by rendering node when they start the network rendering.
|
1.3.9.1