File Exchange

image thumbnail

Spongebob Squarepants goes 3-D

version (1.73 MB) by Antonio Tristán Vega
GUI demonstration of different representations of 3-D rotations


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:
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:
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",, 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.

Comments and Ratings (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.

Updated picture

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

Added picture

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

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

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor