Patch Software Render

版本 1.0.0.0 (56.8 KB) 作者: Dirk-Jan Kroon
Patch Software Render with Phong-shading, shadows and textures
1.9K 次下载
更新时间 2010/3/25

查看许可证

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

引用格式

Dirk-Jan Kroon (2024). Patch Software Render (https://www.mathworks.com/matlabcentral/fileexchange/27084-patch-software-render), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0