public class SoRenderToTextureProperty extends SoNode
It can be used with the classes SoTexture2
and SoTextureCubeMap
. Create the SoRenderToTextureProperty
node and assign it to the
renderToTextureProperty field of the texture mapping node.
The SoRenderToTarget
node can also be used to create texture images.
One of the two fields, node or path, must be defined.
The scene graph should normally contain a camera and at least one light. Unlike SoRenderToTarget
, the children of SoRenderToTextureProperty
do not inherit the camera, lights, etc from the main scene graph.
Note that the default image size is 0,0 (effectively disables rendering).
File format/default:
RenderToTextureProperty {
node | [] |
path | "" |
updatePolicy | WHEN_NEEDED |
backgroundColor | 0 0 0 |
size | 0 0 |
component | RGB |
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoRenderToTextureProperty.Components
Rendering component enumeration values.
|
static class |
SoRenderToTextureProperty.UpdatePolicies
Update Policy enumeration values.
|
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFColor |
backgroundColor
Background color used when rendering the scene graph.
|
SoSFEnum<SoRenderToTextureProperty.Components> |
component
Specifies the type of component(s) for the rendering.
|
SoMFNode |
node
Specifies the scene graph(s) (
SoNode(s) ) to be rendered into the texture. |
SoMFPath |
path
Specifies the scene graph(s) (
SoPath(s) ) to be rendered into the texture. |
SoSFVec2s |
size
Size in pixels of the rendered texture.
|
SoSFTrigger |
trigger
Trigger field to render the scene into the Pbuffer.
|
SoSFEnum<SoRenderToTextureProperty.UpdatePolicies> |
updatePolicy
Specifies the policy for rendering to the texture.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoRenderToTextureProperty() |
Modifier and Type | Method and Description |
---|---|
SoGLRenderAction |
getGLRenderAction()
Returns the render action used for rendering the scene.
|
void |
setContextForSharing(SoGLContext name_20568)
Deprecated.
As of Open Inventor 10000 No more used. Related to deprecated PBuffer implementation.
|
void |
setGLRenderAction(SoGLRenderAction ra)
Specifies a custom render action to use for rendering the scene.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoMFNode node
SoNode(s)
) to be rendered into the texture.
For use with SoTexture2
, only one scene graph should be specified. For use with SoTextureCube map, six scene graphs must be specified, one for each face of the cube in the order:
The node field has priority over the path field. Null by default.
public final SoMFPath path
SoPath(s)
) to be rendered into the texture.
For use with SoTexture2
, only one path should be specified. For use with SoTextureCube map, six paths must be specified, one for each face of the cube in the order:
The node field has priority over the path field. Null by default.
public final SoSFEnum<SoRenderToTextureProperty.UpdatePolicies> updatePolicy
UpdatePolicy
. Default is WHEN_NEEDED.public final SoSFColor backgroundColor
public final SoSFVec2s size
public final SoSFEnum<SoRenderToTextureProperty.Components> component
Component
. Default is RGB.public final SoSFTrigger trigger
@Deprecated public void setContextForSharing(SoGLContext name_20568)
public SoGLRenderAction getGLRenderAction()
public void setGLRenderAction(SoGLRenderAction ra)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com