Screenshot (image) of the GLUT display

Screenshot (image) of the GLUT display

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.

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

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. 

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

Thanks.

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

Thank you Sven ! Done.....

Leave a Comment

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