How do I configure the default camera views in unreal engine co-simulation?

7 ビュー (過去 30 日間)
Daniel
Daniel 2025 年 4 月 26 日
回答済み: Nishan Nekoo 2025 年 4 月 28 日
I am using the aerospace toolbox and passing vehicle dynamic state into unreal engine. Everything works great except the camera views in unreal engine editor. I am using Cesium ion which only renders tiles in the vicinity of the main camera fucrum. I have multiple camera views such as one looking down from the top of my rocket at the fins which does not render. The vehicle is relatively small and the default viewer camera angles are very far away from the vehicle. Is there a way to re-configure the default camera views or fix my problem with cesium rendering?

回答 (1 件)

Nishan Nekoo
Nishan Nekoo 2025 年 4 月 28 日
Hi Daniel,
"I have multiple camera views such as one looking down from the top of my rocket at the fins which does not render. "
Are you referring to the Cesium tiles not rendering or is the image not rendering at all? How are you configuring this camera view, is it the camera that you show in your Simulink model screenshot?
"The vehicle is relatively small and the default viewer camera angles are very far away from the vehicle."
You're right that the camera views don't adjust automatically to a smaller vehicle. Unfortunately, there isn't an easy way to change those default camera views.
If you just want one fixed view throughout the simulation, you could consider adding an empty Simulation 3D Actor to the scene to serve as a placeholder. Specify your vehicle as the parent of this actor so that the actor moves along with the vehicle, then specify an offset of this actor from your vehicle. Finally, in the Simulation 3D Scene Configuration block, set the Scene View to this empty actor. Adjust the actor transformations as needed during the simultion to get the view that you want.
This approach would work if you want a fixed view throughout the simulation. To have different views during the simulation, you could create some Simulink logic to change the translation and rotation of this placeholder actor during the simulation to modify the camera view.
Hope that helps!
Nishan

カテゴリ

Help Center および File ExchangeAerospace Scenarios についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by