This page has been translated automatically.
Программирование
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and 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
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Stars Generator for Billboards

Stars generator allows for creating a starry night sky, with stars drawn fast on Billboards. It is found on Billboards node → Stars tab.

Billboards with stars

Billboards with stars

How to Create Stars Billboards

To create stars billboards, follow these steps:

  1. Add Billboards node.
  2. On the Stars tab, press Catalog load button and choose a FK5 stars catalog (the Fifth Fundamental Catalogue).
  3. Make sure that the Radius of the created sphere with stars is not bigger than the camera's far clipping plane (Camera SettingsFar clipping). Otherwise, stars will not be seen.
  4. Click Create button to create billboards.
  5. Click Texture button and choose a location to save a texture atlas with stars.
  6. Create a material for billboards with stars:
    1. Inherit a material from billboards_base .
    2. Assign it to ObjectBillboards.
    3. Go to States tab → Options and check Angular size box. The stars will appear on the sky.
    4. Set up rendering of the stars billboards:
      1. Set Ambient pass to Transparent (otherwise, the stars will be too dull).
      2. Set Deferred pass to Skip.
      3. Set all light passes (spot, prob, omni, proj and world) to Skip (not to light billboards).
    5. Go to Textures tab and load a diffuse texture: select the previously saved stars texture.
  7. After changing any parameter in the star generator, click Create to reload a texture in the Material settings.

Options

Count The maximum number of billboards to create. If there are fewer stars in the loaded catalog, fewer billboards will be created.
Radius Radius of the sphere with stars billboards.
Notice
To see the stars, the Radius should be smaller than the camera's far clipping plane (Camera settingsFar clipping).
For big worlds, stars Billboards also needs to be attached the camera (made a child node of the player) to avoid any clipping.
Angle The angular diameter of stars:
  • The higher the value, the bigger the stars.
Catalog Load a FK5 stars catalog.

Latitude Latitude of the point to view the star sky from.
Longitude Longitude of the point to view the star sky from.
Location Choose a city to view the star sky from.

Create Create stars billboards and reload the texture, if it was set in Materials settings.
Clear Delete all stars billboards.
Texture Save an atlas texture for stars billboards based on the loaded catalog.
Last update: 03.07.2017
Build: ()