ShadowViewarea
The ShadowViewarea is a specialized viewarea for shadow rendering
Inheritance
Code
XML encoding
<ShadowViewarea mapSize='512' shadowColor='0,0,0' offsetBias='4' offsetFactor='10' shadowOn='true' lights='' enabled='TRUE' view='' background='' foreground='' environment='' user='' fog='' lowerLeft='0 0' upperRight='1 1' description='' logoEnabled='FALSE' logoUrl='' logoPosition='0 0' grabFrames='0' grabFile='frame%04d.png' statisticLevel='0' keyPress='0' keyRelease='0' mousePress='0' mouseRelease='0' mouseMove='0 0' logFeature='' />
Classic encoding
ShadowViewarea {
mapSize 512
shadowColor 0,0,0
offsetBias 4
offsetFactor 10
shadowOn true
lights []
enabled TRUE
view [""]
background [""]
foreground [""]
environment [""]
user [""]
fog [""]
lowerLeft 0 0
upperRight 1 1
description ""
logoEnabled FALSE
logoUrl [""]
logoPosition 0 0
grabFrames 0
grabFile "frame%04d.png"
statisticLevel 0
keyPress 0
keyRelease 0
mousePress 0
mouseRelease 0
mouseMove 0 0
logFeature [""]
}
Interface
Filter: X3D only | Avalon only | All
| id | Name | DataType | PartType | Default | ValueType | Description |
|---|---|---|---|---|---|---|
| mapSize | SFInt32 | inputOutput | 512 | Resolution of the shadow map. If larger then window size, tiledrendering is used | ||
| shadowColor | SFColor | inputOutput | 0,0,0 | Color of the shodow | ||
| offsetBias | SFFloat | inputOutput | 4 | Offset bias can be used to reduce Z-Buffer artefacts | ||
| offsetFactor | SFFloat | inputOutput | 10 | Offset factor can be used to reduce Z-Buffer artefacts | ||
| shadowOn | SFBool | inputOutput | true | If TRUE, shadow is calculated | ||
| lights | MFInt32 | inputOutput | OpenGL light number for wich a shadow is calculated. If none isgiven, shadow is calculated for all lights | |||
| enabled | SFBool | inputOutput | TRUE | If FALSE, rendering is disabled | ||
| view | MFString | inputOutput | Names of viewpoint objekts that sould be used on this viewarea. If no name is given, the currently bound viewpoint is used. If morethen one name is given, the first valid viewpoint is used. | |||
| background | MFString | inputOutput | Names of background objekts that sould be used on this viewarea. If no name is given, the currently bound background is used. If morethen one name is given, the first valid backgound is used | |||
| foreground | MFString | inputOutput | Names of foreground objekts that sould be used on this viewarea. If no name is given, the currently bound foreground is used. If morethen one name is given, the first valid foreground is used | |||
| environment | MFString | inputOutput | Names of environment objekts that sould be used on this viewarea. If no name is given, the currently bound background is used. If morethen one name is given, the first valid environment is used | |||
| user | MFString | inputOutput | Names of user bindable objekts that sould be used on this viewarea. If no name is given, the currently bound user is used. If morethen one name is given, the first valid user is used | |||
| fog | MFString | inputOutput | Names of fog bindable objekts that sould be used on this viewarea. If no name is given, the currently bound fog is used. If morethen one name is given, the first valid fog is used | |||
| lowerLeft | SFVec2f | inputOutput | 0 0 | Lower left corner of the viewarea. Values less or equal then 1 are treated as relative values. If values are greater then 1, the valuesare treated as number of pixels | ||
| upperRight | SFVec2f | inputOutput | 1 1 | Upper right corner of the viewarea. Values less or equal then 1 are treated as relative values. If values are greater then 1, the valuesare treated as number of pixels | ||
| description | SFString | inputOutput | Textual description of this viewarea | |||
| grabFrames | SFInt32 | inputOutput | 0 | If value positive, 'value' rendered images are grabed and written into a file given by grabFile, if value=-1, grabbing is always done, if 0, it is disabled. | ||
| grabFile | SFString | initializeOnly | frame%04d.png | Filename that sould be used to save grabed images. A sequence numbercan be used with the sprintf %d operator. | ||
| statisticLevel | SFInt32 | inputOutput | 0 | Statistics level | ||
| modifier | MFNode | initializeOnly | ViewModifier | Modifiers are used to add additional features to the viewing matrix.This is used for tiled displays or other complex projections. | ||
| navigator | SFNode | inputOutput | Navigator | Navigator object used for user interaction | ||
| keyPress | SFInt32 | inputOutput | 0 | Key press event output | ||
| keyRelease | SFInt32 | inputOutput | 0 | Key release event output | ||
| mousePress | SFInt32 | inputOutput | 0 | Mouse button press event output | ||
| mouseRelease | SFInt32 | inputOutput | 0 | Mouse button release event output | ||
| mouseMove | SFVec2f | inputOutput | 0 0 | Mouse move event. Gives the position of the mouse in 2D window space | ||
| mouseOver | SFBool | inputOnly | FALSE | Emmits true, if mouse points to a pointing sensor | ||
| message | SFString | outputOnly | Message to be processed. Valid messages are: toggleFullScreen toggleHeadlight toggleGlobalShadow nextShadowMode toggleLazyInteractionEvalution toggleDrawVolume toggleCullFrustum toggleCullOcclusion nextDrawMode pointDrawMode lineDrawMode fillDrawMode nextInfoScreen firstView lastView nextView prevView resetViewPosition showAll walkNav flyNav freeFlyNav examineNav lookatNav noneNav forward backward left right exportBackendASC exportBackendBIN exit | |||
| displayFilter | MFNode | inputOutput | DisplayFilter | Holds all optional display filter nodes | ||
| metadata | SFNode | initializeOnly | MetadataObject | container for payload metadata inside MetadataSet element | ||
| logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything |
