3D Environment
The 3D environment is a digital space designed to simulate real-world phenomena to explore and manipulate objects within the environment. You can use the MATLAB® or Simulink® interface to create, view, and interact with the 3D environment.
Visualize the 3D environment using the Unreal Engine from Epic Games® for photorealistic rendering. You can access advanced features, such as lighting and atmospheric conditions.
Programmatically create and view a 3D environment using MATLAB or a Simulink model.
Use MATLAB and Simulink to communicate with the 3D environment during run-time through the co-simulation framework with the Unreal Engine.
Import custom scenes and scenarios designed and built in RoadRunner and visualize using the Unreal Engine environment.
View the 3D environment in the Simulation 3D Viewer using the prebuilt scenes and you can navigate in the 3D environment using keyboard shortcuts and mouse control.
Record the 3D animation data as MAT file and play back the animation data to help troubleshoot issues. You can also record the animation as a video file to present the simulation results.
Enhance 3D environment interaction using hardware interface input devices such as a joystick and a space mouse. You can navigate, explore, and control actors within the environment during run time.
Customize prebuilt scenes and actors or create new scenes in the Unreal Engine simulation environment using the Simulink 3D Animation™ Interface for Unreal Engine Projects support package.
Classes
Functions
Blocks
Scenes
Empty Scene | Empty world |
Blank Scene | Blank scene |
Empty Grass | Empty grass 3D environment |
Curved Road | Curved road 3D environment |
Straight Road | Straight road 3D environment |
Topics
Simulation Basics
- Create 3D Simulations in Unreal Engine Environment
Use MATLAB or Simulink to create, view, and interact with 3D simulations and access Unreal Engine features. - Coordinate Systems in Simulink 3D Animation
Understand coordinate systems for representing models in Unreal Engine simulation environment. - Interact with 3D Simulation Environment
Control actors using the Simulation 3D Viewer interface and programmatically control the simulation. - Navigate in 3D Environment
Control the view of the 3D environment in the Simulation 3D Viewer using keyboard shortcuts and mouse controls. - 3D Scenes for Simulation in Unreal Engine Environment
Install 3D scenes for simulation in Unreal Engine environment.
Scene Customization
- Customize Scenes in Unreal Engine for 3D Simulations
To customize scenes, use the Simulink 3D Animation Interface for Unreal Engine Projects support package.
- Create Empty Project in Unreal Engine
Create empty project to use in custom scenes. - Get Started Communicating with the Unreal Engine Visualization Environment
Use the Simulation 3D Message Get and Simulation 3D Message Set blocks to communicate with the Unreal® Editor. - Build Light in Unreal Editor
Build and use lighting in the Unreal Editor. - Place Cameras on Actors in the Unreal Editor
Place camera blocks on static and custom actors.
Visualize Scenario
- Simulate RoadRunner Scenarios with Actors Modeled in MATLAB and View in Unreal Engine 3D Viewer (Automated Driving Toolbox)
Define custom actor behavior and visualize RoadRunner simulations in 3D usingsim3d.scenario.ActorBehavior
object. - Create and Use an Oval Track (Vehicle Dynamics Blockset)
Create an oval track with RoadRunner and use it in a Vehicle Dynamics Blockset™ simulation that co-simulates with Unreal.