I would like to compile Embree with ImageMagick support on windows since the textures I use are usually in .jpg format and I would like to produce renders in .tif format instead of TGA. The CMake support isn't quite ready for windows yet. So how would I go about adding imagemagick support.
The code has been enabled using a pre-processor definition set for all projects as shown below. Beyond this point adding to the Include path and Library path allows successful linking to ImageMagick. JPG textures are read and renders can be performed to TIF.
However the jpeg textures read via image-magick seem to be flipped vertically in rendering, so I added a flip call.
catch( Exception &error_ )
std::cout << "Caught exception: " << error_.what() << std::endl;
std::cout << "Failed to flip" << std::endl;
I am mainly interested in performing orthographic rendering. Is there an orthographic camera option or does this need to be set-up with a custom ray-generator ?
There is no orthographic camera included in the Embree Renderer. If you need that you can either hack the devices/device_singleray/cameras/pinholecamera.h to do what you need, or add a new camera type.