User-controlled 3D Airplane Animation -- Set of examples

版本 1.0.0.0 (5.5 MB) 作者: Matthew Sheen
3D animation examples which lead up to a user-controlled airplane "game".
1.4K 次下载
更新时间 2016/6/23

DEMO Video: https://www.youtube.com/watch?v=xHjyinJnIF8
This series of examples walks you through the steps to create a 3D plane animation controlled with the keyboard.
For the final result, see: "4 Getting fancy> 3 All together > FinalEx.m"

Folders with various examples. Skip right to 4 if you just want the final code!

1. Figure, axis, and plot objects & changing their properties

2. 3D patch objects - single patches, compound patches, rotating patches, translating patches, adding keyboard controls to patches

3. Camera control - changing camera position, target, orientation, and view angle. Following an airplane 1st person, 3rd person?

4. Stuff to improve viewing:
- Importing 3d models as patch objects - cessna, A10
- Adding ground with texture and lighting
- Adding the horizon
- Final example incorporating 1,2,3,4

*** Credit to Eric Johnson for his great STLREAD function on the file exchange: https://www.mathworks.com/matlabcentral/fileexchange/22409-stl-file-reader

Originally created for use in Andy Ruina's flight dynamics course @ Cornell University.

**** NOTE: I use the "fig.Properties = 'something'" way of changing things. This works on MATLAB 2014b+. If you are using an older version, you will need to use something like set(fig,'Properties','something') To my knowledge, all other parts are compatible with previous versions.

引用格式

Matthew Sheen (2024). User-controlled 3D Airplane Animation -- Set of examples (https://github.com/mws262/MatlabPlaneGraphics), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

参考作品: STL File Reader

Community Treasure Hunt

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

Start Hunting!

1 figure objects

2 Patches in 3d

3 Cameras

4 Getting fancy/1 Fancy planes

4 Getting fancy/2 Fancy environment

4 Getting fancy/3 All together

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.0.0.0

edits to description

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库