Patch Software Render
These files features a complete software render pipeline from Triangulated Mesh to Fragments. Like the OpenGL software renderer, but without using any external libraries, and far less code. The renderer renders to a Matlab image, instead of the computer screen.
The render pipeline is written in c++ code, and supports, Phong shading, Color interpolation, Textures.
Also there is c++ code for calculation of Shadow Volumes, which can be used for self shadowing, and other real shadow effects.
The pipeline and all commandos are like in OpenGL, thus you can use the OpenGL documentation for things like your blending function and modelmatrix.
Warning,
This is "version 0", thus there are only a few examples, only limited help available, and probably some bugs.
You need a c++ compiler to compile the code, before running the example. Compile code:
mex renderpatch.cpp -v
mex patchshadowvolume.cpp -v
mex patchnormals_double.c -v
Zitieren als
Dirk-Jan Kroon (2024). Patch Software Render (https://www.mathworks.com/matlabcentral/fileexchange/27084-patch-software-render), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Arithmetic >
- MATLAB > Graphics > 2-D and 3-D Plots > Surfaces, Volumes, and Polygons > Polygons >
Tags
Quellenangaben
Inspiriert: Local Depth SIFT and Scale Invariant Spin Image local features for 3D meshes
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |