Code covered by the BSD License  

Highlights from
Patch Software Render

5.0

5.0 | 2 ratings Rate this file 35 Downloads (last 30 days) File Size: 56.8 KB File ID: #27084
image thumbnail

Patch Software Render

by

 

Patch Software Render with Phong-shading, shadows and textures

| Watch this File

File Information
Description

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

Acknowledgements

This file inspired Local Depth Sift And Scale Invariant Spin Image Local Features For 3 D Meshes.

MATLAB release MATLAB 7.10 (R2010a)
Other requirements C++ Compiler
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
21 Feb 2014 Dirk-Jan Kroon

Note, in this version is the following bug
Line 34 in renderpatch_shading.cpp:
if(L[3]==0)
Is a bug, must be:
if(LP[3]==0)

21 Mar 2012 Gabriel Peyre

Very impressive piece of code.

25 Jul 2010 Tal Darom

Great work.
I have only one comment - I think depth check should be true by default

Contact us