Issue with trigonometric functions
Posted by Abimael on Oct 12, 2011; 12:26am
URL: https://forum.jogamp.org/Issue-with-trigonometric-functions-tp3414394.html
Hi
I am experiencing some issues with sin , cos functions .. The workaround is use native_sin and native_cos.
But I have issue with acos as well.
And there is no workaround.
There is no error message, but I see that the OPENCL just does not execute the line .
I just realized the issues when I got values that I really do not expect.
Them I started a very boring "debug" steps : write one of the cell in the buffer with a value that I previous know, run the opencl program,
set another buffer cell with a trigonometric result (ie. acos(alpha) , check results ..
I realized that acos does not work properly.
I know that the argument should be in radians .
Does anybody have the same or similar issues ?
As I did a lot of changes, I really do not recall if the code had worked previsously.. I guess that it worked , but I am not sure.. So , I decided post a message here to share and hear from others ..
Thank you .. ANy comment and help is welcome .
Regards