MatlabGraphicalModel
Matlab Graphical Model Rendering-Engine
The class Gmodel is a graphical rendering engine for triangular mesh model. The class uses the normal vector computed for the triangular faces, to derive the appriopriate texture related to a Material Capture -- also called matcap. The tool comes equipped with a brouad collection of materials, including copper, steel, eggshell, jade, matte plastics, and a bunch of common textures used in Computer Graphics. On top of that, using callback function, rotating the model automatically updates the material texture.
Usage:
obj = Gmodel('Bunny.stl') % or any other .stl file
obj.bake.render(); % baking needs to be called at least once, render calls the figureYou can also force a texture update by calling
obj.update();This can be useful in for-loops.
Installation
We highly recommend installing the essentials package using the Matlab Package Manager (MPM), which can be easily installed via the Matlab Add-On Mananger 
mpm install matessentials --all-paths
mpm install gmodel --all-pathsThis will generate a folder under MATLAB Add-Ons/Collections/mpm/mobeets-mpm-c626429/mpm-packages/gmodel/.
Citation pour cette source
Brandon Caasenbrood (2025). MatlabGraphicalModel (https://github.com/BJCaasenbrood/MatlabGraphicalModel), GitHub. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
matcap
matcap/img
src
Les versions qui utilisent la branche GitHub par défaut ne peuvent pas être téléchargées
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 0.6 | minor updates |
|
|
| 0.5 | See release notes for this release on GitHub: https://github.com/BJCaasenbrood/MatlabGraphicalModel/releases/tag/0.5 |
||
| 0.4 | Minor update |
|
|
| 0.3.0.0 | See release notes for this release on GitHub: https://github.com/BJCaasenbrood/MatlabGraphicalModel/releases/tag/0.3 |
||
| 0.2 | See release notes for this release on GitHub: https://github.com/BJCaasenbrood/MatlabGraphicalModel/releases/tag/0.2 |
||
| 0.1 | See release notes for this release on GitHub: https://github.com/BJCaasenbrood/MatlabGraphicalModel/releases/tag/0.1 |
||
| 0.0 |










