10-09-2011 12:56 AM
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.
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?