The Sprite entity is an entity that lets you render 2D images in your 3D scene. These are known as Sprites. Sprites can be used to create call-outs on models, selectable UI in the scene or to simply show UI and images in a 3D scene.
Sprites can be used to add further interaction or even configuration to your 3D scene. This can be a great way of getting users to interact with the model and engage them in your 3D configurator.
Above is a basic example of how the Sprite entity can be used to add numbers and text to models in a 3D scene. When you select a numbered Sprite, another Sprite is shown with a label image applied.
It is worth noting that Sprites render 2D but are relative to 3D space. This results in them always facing the camera but being anchored to points in 3D space.
With a node selected and the Sprite entity added to the node, the following will be displayed in the Information Panel:
Color
Color is used to tint the color of the image or texture added to the Sprite entity. You can control the intensity of the Red, Green or Blue channels separately in the entity. This is great for tinting an image to show that the Sprite has been selected.
Occluded Opacity
Occluded Opacity controls how opaque or transparent the Sprite goes when it is occluded by a model in the scene.
Occluded Opacity only applies to Sprites that are NOT set to fixed size. Fixed size Sprites will not render transparent when occluded by another object.
Anchor Position
Anchor Position controls the justification of the texture or image used on the Sprite. This controls where the image is positioned relative to the Nodes origin.
Pixels Per Meter
Pixels Per Meter affects how large the Sprite image will be and determines how much of the image to show per meter.
Render Mode
Render Mode controls how the Sprite appears. Orthographic maintains the image size on screen. Perspective changes the size of the Sprite as you zoom in and out of the model.
Orthographic Scale
Orthographic Scale lets you control the size of the Sprite image when the render mode is set to Orthographic.
This is controlled using the X and Y scale properties under Orthographic Scale.
Sprite Texture
Sprite Texture is the path to an image that will be used and shown on the Sprite in 3D. This can be a jpg or png image file.
With the model node selected and the Sprite entity added to the node, the following will be displayed in the Parameter Panel:
Color is used to tint the color of the image or texture added to the Sprite entity. You can control the intensity of the Red, Green or Blue channels separately in the entity. This is great for tinting an image to show that the Sprite has been selected.
Occluded Opacity controls how opaque or transparent the Sprite goes when it is occluded by a model in the scene.
Anchor Position controls the justification of the texture or image used on the Sprite. This controls where the image is positioned relative to the Nodes origin.
Pixels Per Meter affects how large the Sprite image will be and determines how much of the image to show per meter. Enter a number.
Render Mode controls how the Sprite appears. Orthographic maintains the image size on screen. Perspective changes the size of the Sprite as you zoom in and out of the model.
Enter either Orthographic or Perspective.
Orthographic Scale lets you control the size of the Sprite image when the render mode is set to Orthographic.
Sprite Texture is the path to an image that will be used and shown on the Sprite in 3D. This can be a jpg or png image file.
Enter the file path or build a rule to the image file that you want to use.
Sprites can be used in a number of ways within a 3D scene. They can be just static images or they can be selectable UI and become part of the configuration experience.
Simple Sprite
To create a simple Sprite you simply need to carry out the following steps:
Selectable Sprite
To create a selectable Sprite you perform the same steps as above with a few extra steps.
The Sprite entity and the Click Macro entity combine to give you the functionality of a selectable Sprite. The Sprite is selectable and then the Click Macro performs the action or task in DriveWorks.