hi ottawa
thanks for your response. however, i had asked something different which is now resolved.
next, in my ray-tracing program, i implemented reflection phenomenon and ignored refraction etc. now i want to add this feature as well. i can do programming part (scripting). however, i am confused how i will handle two rays. let me explain it in a bit detail.
currently, there is a function (follow_path) in my script file which keeps track of a ray until it reaches receiver or lost by taking into account reflection.Now, if i introduce refraction, there will be two rays if a ray hits some glass material (one reflected and one refracted) and both should be tracked correctly. the reflected is already being tracked. how can i track refracted ray once i calculate it. i am thinking the program tracks only single for any given time so how will it handle this issue.
i hope i have clarified my question, if not, i can send you my function if you lemme know how to attach a file here in this forum.
cheerz
asif