Original Post
Hi, I've been browsing the forums for a while and picked up alot of info from you guys so thanks for that, anyway more to the point I've been playing about with ray tracing and I've been able to get a very basic naive recursive ray tracer working but I've come across a couple of problems. Firstly my question, I am unsure how the actual light object works. When a ray is cast through the scene it bounces off of the spheres and the final colour is the pixelcolour + the reflected colour (not implemented phong shading yet). If it doesnt hit an object the pixel colour is black. This seems to work but im not sure how to implement point lights. Does anyone have a tutorial? Im not to sure what functions to implement or how it works, eg if a ray hits a light what extra calculations/information needs to be processed? Sorry if this is a newb question. Also I am generating alot of noise in my ray traced images. If you would kindly look at http://www.flickr.com/photos/93606551@N00/88762588/in/photostream/ you will see an image that i have generated. Its noisey and a dark ring is visible. Also notice the over saturation of the pixels the further along the x axis you go. Im thinking maybe supersampling will fix this problem but i dont understand WHY the dark ring is forming, its almost as if I have a light a tthe top right hand corner but thisis impossible as I dont have any light sources yet.. Any ideas?? If not thats ok, im more interested in implementing point lights. Thank you for reading my question and if you can help me in any way that would be great. Thanks Ste