else if (buffer.getBufferType() == BufferType.HDR_IMAGE) {
new ImageWriter().saveImage(buffer.getHDRImage(),
file.getAbsolutePath());
}
else if (buffer.getBufferType() == BufferType.MESH3D) {
new SunFlowWriter().saveMesh(buffer.getMesh3D(), file.getAbsolutePath());
}
else {
showMessage("Not supported");
return;