DropletFlowAppearance
The DropletFlowAppearance node runs a droplet flow simulation in image space and can be used as an additional appearance of the geometry.
Inheritance
Code
XML encoding
<DropletFlowAppearance surfaceMapSize='256 256' noiseMapSize='32 32' perturbAngle='0.1' frictionN='8.0' frictionSigma='0.5' fluidDensity='1.0' fluidViscosity='1.0' contactAngle='1.570778' fluidColor='0.1 0.2 0.9 1.0' force='0.0 -0.1 0.0' sources='' appearanceMode='auto' tangents='1' timeStep='0.4' timeDelay='0.01' triggerName='Timer' sortKey='0' sortType='auto' logFeature='' />
Classic encoding
DropletFlowAppearance { surfaceMapSize 256 256 noiseMapSize 32 32 perturbAngle 0.1 frictionN 8.0 frictionSigma 0.5 fluidDensity 1.0 fluidViscosity 1.0 contactAngle 1.570778 fluidColor 0.1 0.2 0.9 1.0 force 0.0 -0.1 0.0 sources [] appearanceMode "auto" tangents 1 timeStep 0.4 timeDelay 0.01 triggerName "Timer" sortKey 0 sortType "auto" logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
surfaceMapSize | SFVec2f | inputOutput | 256 256 | Width and height of surface map (which holds simulation state). | ||
noiseMapSize | SFVec2f | inputOutput | 32 32 | Width and height of noise map. | ||
perturbAngle | SFFloat | inputOutput | 0.1 | Angle of perturbation for normal and tangent maps in radians. | ||
frictionN | SFFloat | inputOutput | 8.0 | Parameter for Gaussian-like friction attenuation. | ||
frictionSigma | SFFloat | inputOutput | 0.5 | Parameter for Gaussian-like friction attenuation. | ||
fluidDensity | SFFloat | inputOutput | 1.0 | Fluid density, higher values cause lower acceleration. | ||
fluidViscosity | SFFloat | inputOutput | 1.0 | Fluid viscosity scales fluid velocity, should be between 0 and 1. | ||
contactAngle | SFFloat | inputOutput | 1.570778 | Droplet contact angle in radians. | ||
fluidColor | SFColorRGBA | inputOutput | 0.1 0.2 0.9 1.0 | Color of fluid. | ||
force | SFVec3f | inputOutput | 0.0 -0.1 0.0 | Force vector. | ||
sources | MFVec3f | inputOutput | Defining droplet sources in texture space (x,y) and droplet size (z). | |||
appearanceMode | SFString | inputOutput | auto | [auto, none, multiPass, singlePassPhong, singlePassReflectRefract] | Defines the final appearance (based on the given texture). Default is a multi-pass phong-like shading. | |
tangents | SFInt32 | initializeOnly | 1 | Defines the texCoord slot for tangent calculation (requires geometry with valid texCoords on slot 0). As default slot 1 is used, and if -1, no tangents are calculated (then geometry must provide them on slot 1). | ||
texture | SFNode | inputOutput | Texture | Valid values of the texture field are descendants of Texture node | ||
scene | SFNode | inputOutput | NULL | SceneBaseNode | Subgraph containing geometry to which simulation shall be applied to | |
timeStep | SFTime | inputOutput | 0.4 | Approximate value for dT in simulation | ||
timeDelay | SFTime | inputOutput | 0.01 | Approximate value for dT in update | ||
pause | SFBool | inputOnly | Trigger to pause/ resume the simulation. | |||
triggerName | SFString | initializeOnly | Timer | Name of the dynamic context-slot which is used by the run-time environment (e.g. Jobs) to trigger the node. Life-Nodes will automatically connect the context-eventOutput to the triggerSlot-eventInput Slot. | ||
triggerSlot | SFTime | inputOnly | A slot which is used internally to connect a dynamic context-slot whose name is set by the triggerName value. It is used automatically to install a run-time environment trigger. | |||
properties | MFNode | inputOutput | AppearanceProperty | holds appearance properties (like material, texture and texture transformation) to be applied to the Shape's geometry | ||
sortKey | SFInt32 | inputOutput | 0 | Change render order manually. | ||
sortType | SFString | inputOutput | auto | [auto, transparent, opaque] | defines the shape type for sorting | |
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 | ||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element |