Commit f300e0f2 authored by Patrik Huber's avatar Patrik Huber

Add the actual render.m file

parent 94aaf7a9
......@@ -66,7 +66,7 @@ MEX_DEFINE(extract_texture)(int nlhs, mxArray* plhs[], int nrhs, const mxArray*
render::extract_texture(mesh, affine_from_ortho, image, compute_view_angle,
render::TextureInterpolation::NearestNeighbour, isomap_resolution);
// Return the extracted texturemap:
// Return the extracted texture map:
OutputArguments output(nlhs, plhs, 1);
output.set(0, isomap);
};
......
function [ framebuffer, depthbuffer ] = render(mesh, modelview_matrix, ...
projection_matrix, image_width, image_height, texture)
% RENDER Renders the given mesh in the given pose.
% [ framebuffer, depthbuffer ] = RENDER(mesh, modelview_matrix, ...
% projection_matrix, image_width, image_height, texture)
%
% Renders the mesh with given model-view and projection matrix, and given
% texture, and returns the rendered framebuffer as well as the depthbuffer.
%
% Please see the C++ documentation for the full description:
% http://patrikhuber.github.io/eos/doc/ (TODO: Update to v0.10.1!)
[ framebuffer, depthbuffer ] = render('render', mesh, modelview_matrix, ...
projection_matrix, image_width, image_height, texture);
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment