This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Landscape Tool
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Content Creation
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Using Impostors

When the scene contains a lot of objects that should be visible at large distances, the application performance suffers. To reduce the number of such objects, impostors are used. They allow speeding up geometry rendering while saving visual fidelity: each impostor repeats transformation and appearance of the original object.

UNIGINE provides the Impostors Creator tool that allows generating impostors for a single object or for objects baked into a Mesh Clutter:

  • In the first case, the billboards-based impostor will be rendered instead of the real object.
  • In the second case, the Grass object will be rendered instead of the Mesh Clutter.

For example, you can replace the distant trees with impostors to optimize forest rendering:

Forest Optimized by Using Impostor Trees
Notice
Generating impostors is shown in the Content Optimization video tutorial, it is available both for a single object and for objects baked into a Mesh Cluster.

1. Grabbing Impostors#

Notice
Grabbing of impostors is not supported for objects with transparent materials. E.g. if you have an object using a material with Alpha Blend preset enabled, the impostor generated for it will not be displayed.

To grab impostor with the Impostors Creator tool, perform the following:

  1. In the Menu Bar, choose Tools -> Impostors Creator. The Impostors Creator tool will open.

  2. In the World Hierarchy window, choose a single mesh or a clutter, for which an impostor should be created.
    Notice
    Impostors can be generated only for Mesh Clutter objects, World Clutter isn't supported.
    • If you choose a mesh, a single impostor represented by the Billboards object will be generated.
    • If you choose a clutter, impostors for all clutter objects represented by the Grass object will be generated.
  3. In the Impostors Creator window, specify the required textures and settings.
    Notice
    If you are going to generate the impostors for vegetation, you should specify For Vegetation option for textures (where available).
  4. Click Create and specify a name for textures in the file dialog window that opens.

The generated impostor(s) will be added as a child node to the original mesh/clutter:

  • For objects baked into the clutter, the Grass object with the material inherited from grass_impostor_base will be added. All required settings will be copied from the original Mesh Clutter to the Grass object automatically.

    Real Clutter Objects and Its Impostors in Scene
    Objects and Impostors Wireframes
  • For a single object, the Billboards object with the material inherited from billboards_impostor_base will be added.

    Real Object (left) and Its Impostor (right) in Scene
    Object and Impostor Wireframes

2. Setting Up Impostor Material#

All textures specified in the Impostors Creator are generated in the data folder and applied in the material automatically. The impostor material may require additional set up:

  • If you grab only the Albedo and Normal textures, you will have to manually set up the other shading parameters of the impostor material (Specular, Translucence, etc.), so that the impostor visually match the original object. However, if the original object has several surfaces with different shading, the impostors may significantly differ (so it is better to grab all textures in this case).
  • For vegetation impostors, the Specular parameter should be set to 0 to avoid unnecessary specks on trees.
  • If you simply want to improve visual representation of impostors, you can adjust shading parameters (for example, increase Translucence for trees impostors and so on).
Last update: 2021-12-13
Build: ()