triganometric calculations
Posted: Mon Dec 04, 2006 1:32 pm
i was doing some personal research on how calculators graph trigonometric functions recently (or more specificaly what algorythem a trig function imposed on a number) and then started wondering about which method of trig calculations indigo uses. does indigo use the programing language's internal trig calculator to calculate trig functions, or does it have its own faster method? if it doesnt, you might want to consider coding your own quicker method of loading a table into the memory and calculating between numbers the inacurite way.
under normal single calculation circumstances, the exact way of triging numbers seems incredibly quick, however in an unbiased raytracer like indigo the massive number of trig calculations calculated would slow it down considerably, i imagine that even a method that is quicker by one nanosecond would speed up renders great amounts. so even if it biases the calculations a bit, i imagine a method that uses a table calculation within the ram would be much quicker than calculating the trig from scratch each time.
i have some wiki pages on how this is done for anybody not realizing why this is important or what i am talking about.
http://en.wikipedia.org/wiki/Discrete_Fourier_transform
http://en.wikipedia.org/wiki/Discrete_Fourier_transform
http://en.wikipedia.org/wiki/Generating ... ric_tables
this question might sound a little noobish to you more experienced programers or might be genious, i have no idea, as i am completely ignorant of other peoples knowing in this area.
under normal single calculation circumstances, the exact way of triging numbers seems incredibly quick, however in an unbiased raytracer like indigo the massive number of trig calculations calculated would slow it down considerably, i imagine that even a method that is quicker by one nanosecond would speed up renders great amounts. so even if it biases the calculations a bit, i imagine a method that uses a table calculation within the ram would be much quicker than calculating the trig from scratch each time.
i have some wiki pages on how this is done for anybody not realizing why this is important or what i am talking about.
http://en.wikipedia.org/wiki/Discrete_Fourier_transform
http://en.wikipedia.org/wiki/Discrete_Fourier_transform
http://en.wikipedia.org/wiki/Generating ... ric_tables
this question might sound a little noobish to you more experienced programers or might be genious, i have no idea, as i am completely ignorant of other peoples knowing in this area.