Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPU(s)

Compilation with ImageMagick support in Windows

Tisham_D_
Beginner
452 Views

Hi,

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.

Cheers,

whatnick.

0 Kudos
3 Replies
SvenW_Intel
Moderator
452 Views

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

0 Kudos
Tisham_D_
Beginner
452 Views

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.

ImageMagick Pre-processor

However the jpeg textures read via image-magick seem to be flipped vertically in rendering, so I added a flip call.

try {
        image.flip();
    }
    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 ?

0 Kudos
SvenW_Intel
Moderator
452 Views

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.

0 Kudos
Reply