RenderingPrimitives and the Renderer classes are the two main components providing AR Rendering support with the Vuforia API.
The Renderer class is here to support video background texture update, and will use graphics resource (e.g. texture, rendering calls).
On the other hand, the RenderingPrimitives class is renderer-agnostic (only CPU data) and should be used to support all the logic you need for a video-based monocular AR rendering.
The RenderingPrimitives are built on the concept of the “rendering” building blocks -the “primitives” in RenderingPrimitives - that you can easily combine to render your scene. These primitives follow some of the common rendering concepts:
- Viewport for your augmentation,
- Projection Matrix for your augmentation,
- Primitives object for video background rendering,
- Projection Matrix for video background,
The RenderingPrimitives are built using information from the Tracking state and also use device information (screen orientation, type of devices). You can see them as the equivalent of the Tracking state for Tracking but for Rendering (Rendering State).