fig2rib
This function takes a figure and exports it to a RenderMan RIB file for use with any RenderMan compliant renderer.
For example, executing the demo 'logo.m' (from the Gallery), you can then export it to rib by entering:
>> fig2rib(gcf,'logo.m')
I rendered the screenshot with PIXIE (http://www.renderpixie.com/).
Fixed in this version:
- changing the camera angle in the figure and then exporting *should* work, but it doesn't.
Caveats:
- this is an alpha proof of concept.
- this only works with meshes right now. parametric surfaces aren't supported yet.
- roughness is defined by an adhoc inversion of specularexponent... this may not be a good approximation in all cases.
- output has only been tested with PIXIE so far, but should work for other renderers.
Citation pour cette source
Larry Kyrala (2024). fig2rib (https://www.mathworks.com/matlabcentral/fileexchange/24241-fig2rib), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Audio and Video Data >
Tags
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.
Version | Publié le | Notes de version | |
---|---|---|---|
1.3.0.1 | Updated license |
||
1.3.0.0 | cleaned up code formatting and added source code copyright and trademarks. |
||
1.1.0.0 | Fixed in the getObjects method so that it doesn't assume an arbitrary depth in the handle graph. |
||
1.0.0.0 |