Go to the documentation of this file.
30 <<
"Usage: " <<
argv[0]
31 <<
" <FILE.3Dscene> <WIDTH> <HEIGHT> <OUTPUT_IMAGE>\n"
32 " Output image can be in many formats: .png, .jpg, .tif, etc.\n";
36 const string sFil =
argv[1];
37 const int width = atoi(
argv[2]);
38 const int height = atoi(
argv[3]);
39 const string sOut =
argv[4];
53 CCamera& camera = render.getCamera(scene);
61 render.getFrame2(scene, frame);
62 frame.saveToFile(sOut);
76 catch (
const std::exception& e)
83 printf(
"Untyped exception!!");
#define ASSERT_ABOVE_(__A, __B)
void setAzimuthDegrees(float ang)
This class allows the user to create, load, save, and render 3D scenes using OpenGL primitives.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A camera: if added to a scene, the viewpoint defined by this camera will be used instead of the camer...
void setZoomDistance(float z)
A class for storing images as grayscale or RGB bitmaps.
CArchiveStreamBase< STREAM > archiveFrom(STREAM &s)
Helper function to create a templatized wrapper CArchive object for a: MRPT's CStream,...
void setOrthogonal(bool v=true)
Enable/Disable orthogonal mode (vs.
void setElevationDegrees(float ang)
int TestOffscreenRender(int argc, char *argv[])
A class for rendering 3D scenes off-screen directly into an image using OpenGL extensions (glext).
std::string exception_to_str(const std::exception &e)
Builds a nice textual representation of a nested exception, which if generated using MRPT macros (THR...
The namespace for 3D scene representation and rendering.
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sun Jul 19 17:54:30 UTC 2020 | |