Be the first to rate this file! 47 Downloads (last 30 days) File Size: 832 KB File ID: #27986
image thumbnail

Fly a 747 with MATLAB: Adding Realism, Quaternions, Trajectory Tracing

by

 

22 Jun 2010 (Updated )

Several enhancements made to the original 747 demo.

| Watch this File

File Information
Description

In the video associated with the demo here:

http://www.mathworks.com/matlabcentral/fileexchange/26123-fly-a-747-using-matlab

There was a teaser posed in the video asking why the 747 in the animation did a 360 flip at certain points in the trajectory. The answer was: We were not using quaternions.

This demo uses the quaternion functions from the Aerospace Toolbox to resolve this paradox.

Also, to add realism to the scene, the terrain was modeled in Blender, a free 3D tool for authoring powerful 3D scenes:

http://www.blender.org/

The tutorial that was referenced for creating the mountains is available here:

http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/Mountains_Out_Of_Molehills

Use the Export to VRML feature to bring into VRML format and add the aircraft from the Objects library in VRealm Builder editor.

The sky was modeled as a half-hemisphere with texturing.

The trajectory tracing was done by creating spheres dynamically using the PROTO declarations.

Acknowledgements

This file inspired International Flight Route Planning Simulator Using Aerospace Blockset.

Required Products Aerospace Toolbox
Simulink 3D Animation
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
10 Oct 2010 Simulink Dude

You can now follow me on Twitter:

http://twitter.com/simulinkdude

20 Sep 2010 Simulink Dude

Design Talk: Enhancing Simulation Studies with 3D Animation Article

http://www.ecnmag.com/Articles/2010/09/Design-Talk/Enhancing-Simulation-Studies-with-3D-Animation/

01 Jul 2010 Simulink Dude

Nice article to read on creating realistic scenes in VRML and use it with Simulink 3D Animation/Virtual Reality Toolbox;

http://www.mathworks.com/company/newsletters/digest/2007/mar/synthetic.html

01 Jul 2010 Simulink Dude

Other enhancements for this demo:

Fly a 747 with MATLAB: Multiple Views in a GUI, Dynamic Lighting:

http://www.mathworks.com/matlabcentral/fileexchange/28006-fly-a-747-with-matlab-multiple-views-in-a-gui-dynamic-lighting

and

Fly a 747 with MATLAB: Shaky Camera Effect, Sound Effect:

http://www.mathworks.com/matlabcentral/fileexchange/28010-fly-a-747-with-matlab-shaky-camera-effect-sound-effect

Updates
12 Jul 2010

Updated thumbnails

Contact us