- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page