instantreality 1.0

Component:
Rendering
Status:
fully implemented
Structure type:
concrete
Standard:
Avalon

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
SFString mode SFString inputOutput QuadSet TriSet, QuadSet Primitives (i.e. strips) can consist if tris or (much better) quads
SFString drawOrder SFString inputOutput BackToFront None, BackToFront Specifies if primitives shall be sorted
SFNode refPoint SFNode inputOutput Coordinate reference point for sorting
SFNode coord SFNode inputOutput Coordinate Contains the vertices of all quads
SFNode color SFNode inputOutput Color Additional vertex colors
SFNode normal SFNode inputOutput Normal Per vertex normals
SFNode texCoord SFNode inputOutput TextureCoordinateBase Texture coordinates
SFNode tangent SFNode inputOutput Normal Per vertex tangents for special lighting
MFInt32 index MFInt32 inputOutput holds topological information, primitives divided by -1
SFVec3f size SFVec3f inputOutput 1 1 1 For BBox calculation
SFFloat lowerBound SFFloat inputOutput 0.25 Percentage of not rendered primitives.
SFVec4f upThreshold SFVec4f inputOutput 0 1 0 0.85 up vector and threshold value for second sorting pass
MFVec4f occluderSpheres MFVec4f inputOutput For advanced sorting based on visibility
SFBool lit SFBool initializeOnly TRUE Lit field.
SFFloat resolution SFFloat inputOutput 1 factor for subdivision of mesh
SFInt32 multiResolutionLevel SFInt32 initializeOnly 1 resolution level in progressive mesh
SFBool invalidateVolume SFBool inputOutput FALSE set volume invalid
SFString normalUpdateMode SFString initializeOnly nice none; fast; nice force update of normals; nice update is with creaseAngle, fast is without
SFString cacheMode SFString initializeOnly auto auto; dlist; vbo; off controls the creation of geo cache objects; auto is vbo or dlist for dynamic objects
MFString optimizationMode MFString inputOutput auto auto; all, none, sharedVertex; stripFan; vertexResort; reduceIndexSize; singleIndex optimization mode settings; used leading +/- to switch modes on and off
MFString 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
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element