Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there simple, free, C++ ray tracing libraries out there?

Tags:

raytracing

I have a pet project related to ray tracing. I need to generate ray traced images but the actual ray tracing is not the focus here. Thus I'd like to be able to freely use a library to do that for me.

I know of POVray but am a bit afraid of it for two reasons:

  • it is quite big, there are zillions of lines of code and many, many features I don't even dream of, so I may have a hard time managing a render from code;
  • it does not compile with visual studio 2010 express, which is what I use, and I hate project configuration. As Melvin Udall would put it: "I'm using the word 'hate' here, about project configuration".

I've been googling for some days now and did not find anything suitable besides POV.

The question is...

Should I get over it and use POVray, or are there simple (but not simplistic), smaller, hidden ray tracing libs freely available, as in free speech?

like image 538
Gabriel Avatar asked Dec 18 '11 12:12

Gabriel


People also ask

Is ray tracing open source?

OpenRT is a C++ ray-tracing library, which allows for synthesis of photo-realistic images. First of all, the library is developed for academic purposes: as an accompaniment to the computer graphics course and as a teaching aid for university students.

What is the difference between ray tracing and path tracing?

Ray tracing is a technique for generating an image by tracing the path of light as it bounces off objects. Path tracing is a similar technique, but it traces the path of light through a scene by following individual light rays.


1 Answers

If your target platform is modern Intel CPUs, Embree is a good option: http://software.intel.com/en-us/articles/embree-photo-realistic-ray-tracing-kernels/

like image 89
Stefan Werner Avatar answered Sep 21 '22 01:09

Stefan Werner