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

Screenshot (image) of the GLUT display

Proof_K_
Beginner
285 Views

Hi,

Is there a support in embree library to save an image (bmp, jpg, png etc.) of the renderered scene? If yes then how?

Thanks.

0 Kudos
4 Replies
SvenW_Intel
Moderator
285 Views

Yes just use the -o option, e.g. ./render -c cornell_box.ecs -o cornell_box.jpg. For JPG to work you have to install ImageMagick as described on embree.github.com. Under Windows Embree was never tested with ImageMagick. However, under Windows you can export tga and ppm files. 

0 Kudos
Proof_K_
Beginner
285 Views

Can you relate an example in c++ as I am doing the application develpment using embree library?

Thanks.

0 Kudos
SvenW_Intel
Moderator
285 Views

Please look at the outputMode function in examples/renderer/renderer/renderer.cpp for example code on howto store an image to disk.

0 Kudos
Proof_K_
Beginner
285 Views

Thank you Sven ! Done.....

0 Kudos
Reply