SortedPrimitiveSet
The SortedPrimitiveSet is a special node for rendering (quad-)strips, which can be sorted in a back to front order with respect to their reference point. Its usage is similiar to the ParticleSet node, but on a "higher" level. Besides this some rendering information like tangents is given.
Inheritance
Code
XML encoding
<SortedPrimitiveSet optimizationMode='auto' logFeature='' cacheMode='auto' normalUpdateMode='nice' multiResolutionLevel='1' invalidateVolume='FALSE' lit='TRUE' resolution='1' occluderSpheres='' upThreshold='0 1 0 0.85' size='1 1 1' lowerBound='0.25' index='' drawOrder='BackToFront' mode='QuadSet' />
Classic encoding
SortedPrimitiveSet { optimizationMode ["auto"] logFeature [""] cacheMode "auto" normalUpdateMode "nice" multiResolutionLevel 1 invalidateVolume FALSE lit TRUE resolution 1 occluderSpheres [] upThreshold 0 1 0 0.85 size 1 1 1 lowerBound 0.25 index [] drawOrder "BackToFront" mode "QuadSet" }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
mode | SFString | inputOutput | QuadSet | TriSet, QuadSet | Primitives (i.e. strips) can consist if tris or (much better) quads | |
drawOrder | SFString | inputOutput | BackToFront | None, BackToFront | Specifies if primitives shall be sorted | |
refPoint | SFNode | inputOutput | Coordinate | reference point for sorting | ||
coord | SFNode | inputOutput | Coordinate | Contains the vertices of all quads | ||
color | SFNode | inputOutput | Color | Additional vertex colors | ||
normal | SFNode | inputOutput | Normal | Per vertex normals | ||
texCoord | SFNode | inputOutput | TextureCoordinateBase | Texture coordinates | ||
tangent | SFNode | inputOutput | Normal | Per vertex tangents for special lighting | ||
index | MFInt32 | inputOutput | holds topological information, primitives divided by -1 | |||
size | SFVec3f | inputOutput | 1 1 1 | For BBox calculation | ||
lowerBound | SFFloat | inputOutput | 0.25 | Percentage of not rendered primitives. | ||
upThreshold | SFVec4f | inputOutput | 0 1 0 0.85 | up vector and threshold value for second sorting pass | ||
occluderSpheres | MFVec4f | inputOutput | For advanced sorting based on visibility | |||
lit | SFBool | initializeOnly | TRUE | Lit field. | ||
resolution | SFFloat | inputOutput | 1 | factor for subdivision of mesh | ||
multiResolutionLevel | SFInt32 | initializeOnly | 1 | resolution level in progressive mesh | ||
invalidateVolume | SFBool | inputOutput | FALSE | set volume invalid | ||
normalUpdateMode | SFString | initializeOnly | nice | none; fast; nice | force update of normals; nice update is with creaseAngle, fast is without | |
cacheMode | SFString | initializeOnly | auto | auto; dlist; vbo; off | controls the creation of geo cache objects; auto is vbo or dlist for dynamic objects | |
optimizationMode | MFString | inputOutput | auto | auto; all, none, sharedVertex; stripFan; vertexResort; reduceIndexSize; singleIndex | optimization mode settings; used leading +/- to switch modes on and off | |
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 |