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);
70 int main(
int argc,
char* argv[])
76 catch (std::exception& e)
78 std::cout <<
"MRPT exception caught: " << e.what() << std::endl;
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)
GLenum GLsizei GLsizei height
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).
The namespace for 3D scene representation and rendering.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |