Compilation with ImageMagick support in Windows

Compilation with ImageMagick support in Windows


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.



4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

To get ImageMagick working under Windows, enable all code that is disabled by #ifdef USE_IMAGEMAGICK. Then let the image project link against ImageMagick.

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.

try {
    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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today