Original Post
So.. I am building a ray tracer, but I am having a big problem with the diffuse ilumination. It's just not working... I believe I got the whole theory right, but for some reason it is just not working... things are wrong...
This is how it goes: I get a scene from a file, and then generate a .pnm with the scene image. All the objects are represented as quadrics... ray/quadric collision is working fine...
I tried debugging it in many different ways, but can't spot the error....
I would really need someone to maybe take a look at the whole code and try to catch the error... the code is very clear tho... I`m sure you will be able to get something out of it...
I am willing to send it to anyone who could perhaps try to take a look at it and spot the error...
So if anyone would be kind enough to help me out, I'll just send the code so far, and I will also be providing more detailed info on the code and the objectives...
I'm sry I can't be more specific about the errors... it's so frustrating not being able to spot what is going wrong on your code, after several hours (I truly mean it) of trying...
Thanks for your attention.
This is how it goes: I get a scene from a file, and then generate a .pnm with the scene image. All the objects are represented as quadrics... ray/quadric collision is working fine...
I tried debugging it in many different ways, but can't spot the error....
I would really need someone to maybe take a look at the whole code and try to catch the error... the code is very clear tho... I`m sure you will be able to get something out of it...
I am willing to send it to anyone who could perhaps try to take a look at it and spot the error...
So if anyone would be kind enough to help me out, I'll just send the code so far, and I will also be providing more detailed info on the code and the objectives...
I'm sry I can't be more specific about the errors... it's so frustrating not being able to spot what is going wrong on your code, after several hours (I truly mean it) of trying...
Thanks for your attention.