Spongebob Squarepants goes 3-D

GUI demonstration of different representations of 3-D rotations
236 Downloads
Updated 22 Jan 2018

View License

This GUI application is mainly intended as a simple, user-friendly interface for the 3-D orientation maths of the robotics toolbox found here: https://es.mathworks.com/matlabcentral/fileexchange/56758-rigid-motions-and-robotics-toolbox
Note you need the toolbox installed and set up (see the setup__robotics_toolbox.m script therein) for this demo to work.
You will also need Georg Stillfried's mArrow3.m function before you are able to run this demo: https://es.mathworks.com/matlabcentral/fileexchange/25372-marrow3-m-easy-to-use-3d-arrow
The GUI will show a left panel that lets the user configure any 3-D rotation based on either a rotation matrix, Euler angles in arbitrary sequences, axis-angle, or quaternions. The 3-D view on the rigth-hand side will render a customizable view of the rotation illustrated by one of the Spongebob Squarepants characters (3-D models made available by "The VG resource", http://www.models-resource.com, for non-commercial use only).
This new version improves the rendering of the 3-D models, and allows to store/recover custom orientations or create simple GIF/AVI animations for your demos.

Cite As

Antonio Tristán Vega (2024). Spongebob Squarepants goes 3-D (https://www.mathworks.com/matlabcentral/fileexchange/61955-spongebob-squarepants-goes-3-d), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: mArrow3.m - easy-to-use 3D arrow

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
2.0.0.0

Improved 3-D models
- Improved (colored) rendering of 3-D models.
- User-defined orientations can be recorded and recovered.
- GIF/AVI animations can be generated by moving through recorded orientations.
- General improvements to the GUI.

1.0.0.0

Updated picture
Added picture
Fixed a bug that made transformed axes to be rendered with wrong orientations. Added axes labels. Improved PNG export with alpha channel.