Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Simple realistic rendering example

paul_1
Beginner
220 Views
Good morning,
I am trying to create simple rendering program with IPP. I have scene with one triangle and I am casting rays one by one through the scene. When the ray hits the triangle I want to mark the position on the image plane with white color.
I went through all the examples I could find and I still cant get it working. I cant understand why my program is producing such strange images, but I think that I am not using the camera and the image plane properly.
Could you please give me some hints or explain how should I position the camera and the image plane properly.
I have attached my code. Please help me.
Souce code:main.cpp
EDIT: I finally found my mistake. The data was OK but the representation was bad.
But I still cant understand how the camera positioning works. Is there anyone who can explain it?
0 Kudos
0 Replies
Reply