instantreality 1.0

View

Abstract interface for any render surfaces e.g. Viewport, Viewarea or RenderedTexture. Use the "description" field to name the View. The default Viewarea is 'default'.

Properties

TypePropertyDescriptionStandard
Stringname

The name of the view; default view has the name 'default'.

Avalon
SFNoderefNode

Returns the reference node; e.g. Viewarea, RenderedTexture or Layer.

Avalon
SFNoderootNode

Returns the root node; e.g. Scene or RenderedTexture child.

Avalon
SFVec2fsize

The size in pixel.

Avalon

Functions

Return typeFunctionDescriptionStandard
voidbuildRay(SFVec2f v, SFVec3f rayPos, SFVec3f rayDir, SFVec3f panePos)

returns the rayPos, rayDir and panePose for the given normalized 2d position

Avalon
SFNodeshootRay(SFVec3f rayPos, SFVec3f rayDir, String NodeType, SFVec3f pickPos, SFVec3f pickNormal)

returns the picked node (or null) for the given rayPos,rayNormal and nodeType, optional rayPosition and rayNormals are assigned

Avalon
SFNodegetActiveBindable(String bindableType)

Returns the currently active bindable of the given typ. Can be null if you e.g. ask for a Viewpoint and the active bindalbe is a OrthoViewpoint; Use abstract types like ViewBindable.

bindableType must be a valid Bindable node (e.g. "Viewpoint", "Background", "Fog", "TextureBackground" or "NavigationInfo" )

Avalon