|
DI-Guy Lua AI SDK
|
This package has functions for setting up shaders for simulated sensor visuals. More...
Public Member Functions | |
| init_package () | |
| Initialize package. More... | |
| reset_package () | |
| Resets package on scenario reset. More... | |
| get_sensor_menu_options () | |
| Allows client code to get a list of possible sensor modes. More... | |
| sensor_menu_triggered (choice) | |
| Applies menu selection of sensor mode. More... | |
| set_up_sensor_shaders () | |
| Assign sensor shader programs to alternate render modes. More... | |
| get_render_mode_from_sensor (sensor) | |
| Utility function for converting sensor to DI-Guy render mode. More... | |
| set_current_sensor_mode (sensor) | |
| Set current sensor mode. More... | |
| set_initial_sensor_mode (sensor) | |
| Set initial sensor mode. More... | |
| update_fullscreen_labels_from_render_mode () | |
| Create or update fullscreen labels can tint and/or add noise. More... | |
This package has functions for setting up shaders for simulated sensor visuals.
Create a new class that is named luaSimModuleHelper.
| luaSensorHelper::get_render_mode_from_sensor | ( | sensor | ) |
Utility function for converting sensor to DI-Guy render mode.
| luaSensorHelper::get_sensor_menu_options | ( | ) |
Allows client code to get a list of possible sensor modes.
| luaSensorHelper::init_package | ( | ) |
Initialize package.
This function is used to initialize the package. It will be called at scenario time 0.
| luaSensorHelper::reset_package | ( | ) |
Resets package on scenario reset.
This function can be used to reset various settings in the package. It will be called each time the scenario is reset.
| luaSensorHelper::sensor_menu_triggered | ( | choice | ) |
Applies menu selection of sensor mode.
Handles choice from a menu of sensor modes (the menu is managed externally).
The 'choice' parameter is one of the strings returned by get_sensor_menu_options().
| luaSensorHelper::set_current_sensor_mode | ( | sensor | ) |
Set current sensor mode.
This function makes the calls necessary to set the current rendering environment to show the specified sensor mode.
| luaSensorHelper::set_initial_sensor_mode | ( | sensor | ) |
Set initial sensor mode.
This function makes the calls necessary to set the initial rendering environment to use the specified sensor mode when the scenario is reset.
| luaSensorHelper::set_up_sensor_shaders | ( | ) |
Assign sensor shader programs to alternate render modes.
This function assigns sensor shader programs to alternate render modes. This is not done by default. This sets not only the defaults for new objects, but updates the shaders of existing objects as well.
| luaSensorHelper::update_fullscreen_labels_from_render_mode | ( | ) |
Create or update fullscreen labels can tint and/or add noise.
This function creates or update fullscreen labels can tint and/or add noise to the primary 3D view, simulating visual artifacts from using sensors.