how to build 3D simulation of a model?

27 views (last 30 days)
Martin
Martin on 10 Apr 2013
Edited: Nishan Nekoo on 11 Jan 2024
Hello,
I'm interested in building 3D model of quadrocopter in Matlab, but I have no idea how to build 3D model in matlab.
My goal is to express my dynamic model and thesis in a simulation model in matlab.
  3 Comments
Kavita Bhagat
Kavita Bhagat on 5 Apr 2021
i want to bulid a 3d design of a room in matlab how is it possible ?
Nishan Nekoo
Nishan Nekoo on 11 Jan 2024
Simulink 3D Animation is a great starting point to build 3D simulations of your model. Starting in R2024a, Simulink 3D Animation contains a suite of basic scenes, actors and sensors that will allow you build 3D simulations using an interface to the Unreal Engine from Epic Games. If you want a domain-specific 3D Simulation such as the quadcopter in your case, use the UAV Toolbox with Simulink 3D Animation to use the Simulation 3D UAV Vehicle, a pre-built asset that you can simulate in Unreal Engine.
@Kavita Bhagat Building a 3D room is possible using the createShape function that is part of the sim3D API and can be used as part of the initialization script of a Simulation 3D Actor by adding primitives such as planes and boxes to form a room. See this example with a platform and the robots encased using primitives.

Sign in to comment.

Answers (2)

Jan Danek
Jan Danek on 4 Sep 2013
Hi Martin,
With simulation of quadrucopter, you are perhaps interested in both quadrucopter model itself, and in surrounding scene in which it is supposed to operate.
With Quadrucopter, you can start with a simple representation (2 crossed beams, 4 cylinders, 1 box in the middle to represent batteries/ECU). This can be easily done using Simulink 3D Animation 3D World Editor. The Editor also provides several simple scenes (try "New from template" - Aerodrome_1) in which you can place your Quadrucopter.
Once you are satisfied with the behaviour of the dynamical quadrucopter model (Plant dynamics / Controller / control device input modelled in Simulink), you can replace a trivial Quadrucopter model with something more resembling a real aircraft - export the corresponding VRML model from a CAD tool and include (inline) it in your main scene.
Good luck,
Jan

Nishan Nekoo
Nishan Nekoo on 11 Jan 2024
Edited: Nishan Nekoo on 11 Jan 2024
Simulink 3D Animation is a great starting point to build 3D simulations of your model. Starting in R2024a, Simulink 3D Animation contains a suite of basic scenes, actors and sensors that will allow you build 3D simulations using an interface to the Unreal Engine from Epic Games. If you want a domain-specific 3D Simulation such as the quadcopter in your case, use the UAV Toolbox with Simulink 3D Animation to use the Simulation 3D UAV Vehicle, a pre-built asset that you can simulate in Unreal Engine

Community Treasure Hunt

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

Start Hunting!