FBLayeredTexture Class Reference


Detailed Description

LayeredTexture class.

This class is used to encapsulate list of textures. User could subclass this class to support customized blending & compostion modes. See /OpenRealitySDK/Samples/miscellaneous/texture_template/ for example.

Examples
Samples/MaterialAndTexture/LayeredTexture.py
Inheritance diagram for FBLayeredTexture:

List of all members.

Public Member Functions

 __init__ (str pName, object pObject=None)
 Constructor.
 FBDelete ()
 Open Reality deletion function.
FBLayeredTexture Clone ()
 Clone the current texture.
 TextureLayerComposition (FBTime pTime, FBTime pTimeInCurrentTimeRef, int pWidth, int pHeight)
 Virtual function to be override if custom layer blend method needed.
 SetLayerConfigDirty ()
 Set layer config dirty to trigger new composition.

Public Attributes

FBPropertyBaseAnimatable BackgroundColor
 Read/Write Property: Animatable Background color which is used to clear color buffer before composition.
FBPropertyListTexture Layers
 Read/Write Property: Textures Layers.

Member Function Documentation

__init__ ( str  pName,
object  pObject = None 
)

Constructor.

Parameters:
pNameName of texture media. Can be a NULL pointer. If set, this will create a FBVideo object used as the Video property.
pObjectFor internal use only.
Examples
Samples/MaterialAndTexture/LayeredTexture.py

Reimplemented from FBTexture.

FBDelete ( )

Open Reality deletion function.

Examples
Tasks/DeleteHierarchy.py

Reimplemented from FBTexture.

FBLayeredTexture Clone ( )

Clone the current texture.

Duplicates the current texture.

Returns:
Newly created texture.

Reimplemented from FBTexture.

TextureLayerComposition ( FBTime  pTime,
FBTime  pTimeInCurrentTimeRef,
int  pWidth,
int  pHeight 
)

Virtual function to be override if custom layer blend method needed.

Upon callback occurs, MotionBuilder already setup GL Render-To-Texture frame buffer target. plugin code is responsible to fill up RTT buffer accordingly.

Parameters:
pTimetime in action time referential
pTimeInCurrentTimeReftime in current time ref
pWidthwidth of the RTT frame buffer target
pHeightheight of the RTT frame buffer target
Note:
If not override in subclass, the internal layer composition logic will be used.
SetLayerConfigDirty ( )

Set layer config dirty to trigger new composition.


Member Data Documentation

FBPropertyBaseAnimatable BackgroundColor

Read/Write Property: Animatable Background color which is used to clear color buffer before composition.

Read/Write Property: Textures Layers.


FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture
FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture