Ends Today: Save up to 95% on the Time Travel Mega Bundle!

The simulation and visualization of relativistic effects in this project do not claim to be quantitatively accurate, but hopefully will give a correct qualitative idea of some relativistic phenomena.


Materials (shaders) for rendering effects associated with black holes (or more precisely, with Schwarzschild black holes) are the main part of this project. All black hole shaders consist of three main shaders, namely the gravitational lensing shader, the volumetric accretion disk shader and the polyline tracer shader. 


Gravitational lensing is modeled by equations not related to general relativity, so it is not physically accurate. Gravitational lensing only distorts a background and the accretion disk, so to be realistic the objects in the scene should be relatively small compared to the sphere bounding the gravitational lensing distortions. 


There are several types of volumetric accretion disk shader, which differ from each other in what effects they simulate and what equations they use for a particular effect. The main volumetric shaders are implemented as Post Process Materials that blend well with opaque objects in the scene, but objects with translucent materials require special care, since the correctness of the final image depends on relative positions of volumetric shapes and translucent objects. In this project, the main post process materials are rendered before translucency and thus should be farther from the camera than translucent objects (see Blendable Location if you want to change this rendering order). 


The two types of polyline tracer shader differ from each other in that ray tracing is performed either for a solid cylinder or a cylindrical shell.


Material Functions are integral to this project as they are building blocks of most materials thereby providing modularity and great possibilities for customization. The purpose of some of them is specific to this project, while others are of a general purpose and can be useful in any work.


Another essential part is the special blueprints intended to facilitate the setting of certain parameters of the volumetric materials and adding these materials to the scene. There are also blueprint actors that make the calculations necessary for some materials to render relativistic effects. How it all works together is shown in several scenes in the demo.


Black hole materials are quite demanding on performance. Performance impact and visual quality can vary greatly depending on the material complexity and the number of samples. Moreover, the image quality depends on the distance that the camera rays travel within the volume, and therefore the quality can change noticeably depending on the position of the camera and the angle of view. Please, try the demo first to assess the balance between performance impact and visual quality and decide if this suits your needs (in the demo level press Ctrl + Num 1 to toggle the FPS counter and then try different visual settings which can be accessed by pressing the M key).



Credits:

"Space Shuttle" by Microsoft is licensed under Creative Commons Attribution.


Forum threads:

Technical Details

Features:

  • the main volumetric shaders are implemented as post process materials;
  • the main material functions use custom expressions;


Number of Main Volumetric Materials: 5

Number of Main Volumetric Material Instances: 8

Number of Unique Materials: 21

Number of Textures 2D: 8

Number of Textures 3D: 2

Texture Resolutions: from 512 to 4096x2048


Supported Development Platforms:

  • Windows: Yes
  • Mac: No


Documentation: Project Description


Important Notes

For correct rendering of the brightness of volumetric materials, Pre-Exposure should be disabled in the project settings;

Materials not tested with Hardware Ray Tracing;

Please note that there is some trade-off in functionality between versions 5.0 and 5.1. In UE 5.0, the old Screen Space Reflection effect is blended quite well with the reflections captured by the Sky Light, as you can see in the Large World Coordinates video and screenshots. In UE 5.1, the Sky Light reflections require enabling Lumen reflections which have certain distance limitations. On the other hand, in UE 5.1, the issue with LWC in post process materials and the issue with small accelerations were fixed (see links to related forum threads in the description above). 

Activating SM6 reduces performance.

29.32 
Platforms Windows 64-bit
UE Versions 4.22 - 4.27, 5.0 - 5.1
Tags RELATIVITY, POST PROCESS, MATERIALS, ACCRETION DISK, DOPPLER EFFECT, BLACK HOLE, DARK STAR, STARS, SHADER, GRAVITY, SCI-FI, SPACE, SCHWARZSCHILD, SPACETIME
Release date 24.08.2022

Similar products

Image
Sign In
Image
Sign Up
Image
Recovery