Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

ItemTextureDisplay

  • Last UpdatedDec 16, 2023
  • 3 minute read

The ItemTextureDisplay node is the base node for all nodes that must draw or write on a texture at runtime. It is the same node type as an ItemTextDisplay

You can use ItemTextureDisplay for different purposes, such as an LCD display of a transmitter, or text printed on the body of equipment.

Platform support

This node is supported on XR-Windows platform only.

XR-WIN

XR-P-WIN

XR-P-IOS

XR-P-AND

XR-P-WASM

Full support

No support

No support

No support

No support

Full support

No support

No support

No support

No support

Changing the default texture

By default, an instance of an ItemTextDisplay node uses its default background texture as the base for drawing. This texture defines not only the background, but also the resolution of the texture.

Specifying different textures and resolutions

Use the textureImage and textureSize parameters to specify values other than default to meet different needs.

Parameter

Description

textureImage

Enables you to replace default texture both in size and background.

textureSize

Enables you to change the texture resolution on the currently used texture (default or redefined).

texture

Should not be used, except in rare and specific exceptions.

Code example

No usage. This node cannot be instantiated.

ItemTextureDisplay fields

These are the fields for ItemTextureDisplay node. Only the node-specific fields are indicated, not fields obtained by inheritance.

Field inheritance: NodeBase > NodeBaseMovable > Item > ItemTextureDisplay

Fields

Type

Use

Default value

Description

maxDistanceVisible

sfloat

Optional

-1

When distance between camera and item is higher than this value, the texture is not redrawn. Set -1 or 0 to avoid distance restriction. The default value can be overridden in the derived item types.

mesh

sstring

Optional

Auto-populated

Name of the texturized mesh. Can be overridden if the item does not support naming convention.

texture

sstring

Optional

Auto-populated

Name of the texture to be dynamically drawn. It must correspond to the name of the texture referenced in the MWX object. This field should be not modified except rare cases.

textureImage

sstring

Optional

Changes the texture used as base.

textureRefreshTime

sfloat

Optional

.05

Minimum time interval in texture update (0.5 means 2 FPS).

textureSize

svec2

Optional

-1 -1

If set to a different value than -1 -1 then this parameter changes the size of the texture (scale). It applies to default texture or to textureImage if set.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in