ChronoEngine:Unit POSTPROCESSING

From ChronoWiki

Jump to: navigation, search

unit_POSTPROCESSING

Status:

Stable

Build depends:

Chrono::Engine

Run depends:

Chrono::Engine

Main developers:

Alessandro Tasora
Hammad Mazhar

This is an optional unit that can be used to export scripts for postprocessing animation data. For example, it can generate the .pov and .ini scripts to be used with the POVray rendering tool. Read the introduction to units for a technical background on the modularity of the Chrono::Engine project.

Features

The POSTPROCESSING unit is used to export data for batch rendering of animations etc.

Here are the main features:

  • converts the ChVisualization assets that one has attached to rigid bodies into rendering primitives for POVray.
  • uses the same ChVisualization assets that one can use for the real-time visualization with the Irrlicht interface
  • allows the introduction of custom POV-specific statements
  • the camera can be attached to moving objects
  • contacts can be rendered in POVray as colored vectors and points
  • etc.

In future we plan to support also other type of rendering software, because the architecture of this system is not limited to POVray.

Requirements

  • To run applications based on this unit, there are no requirements (but after you run your simulations, you may need POVray to load and render the output files)
  • To build applications based on this unit there are no requirements.

Building instructions

This unit corresponds to an additional DLL library, called ChronoEngine_POSTPROCESS.dll, that can be linked to your application if you want to use it. On Linux systems, the .dll suffix is .so.

  • Repeat the instructions for the full installation, but when you see the CMake window, you must add the following steps:
  • Set the ENABLE_UNIT_POSTPROCESS as 'on', then press 'Configure' (to refresh the variable list)
  • Press 'Configure' again, then 'Generate', and proceed as usual in the installation instructions.


When you will rebuild the project, you could find the demo_postprocess in the binary directory, among other default demos.

Look at the C++ source of these demos (in chronoengine/source/demos/postprocess/ ) to learn how to use the functions of this unit.

For example, look at the demo_postprocess tutorial.

Personal tools