DescriptionMy second cycles node, working partially:
View Distance:
------------
it's working fine. The formula [ distance = sqrt(dot(vector,vector)); ] is the conversion to pure c/opencl of Blender's normalize_v3 function.
View Z Depth:
-----------
It works but it's 'banded' (expected I guess).
Also the Z doesn't seem to change if I change the camera clip start and clip end. I thought Z was calculated between this range. That would boost the resolution a bit.
View Vector:
----------
the result is always different than Blender Render. However the vector seems to be fine given that I use it to calculate the Z and the distance. So it may need a little tweak.
Also I thought that sd->I would be the view vector, but it doesn't seem so.
OSL:
----
I didn't build the OSL shader because there is no way I can test it, and no way I will get it right without testing it ;)
SVM ERROR in OSX:
----------------
If I try GPU rendering in my ATI OSX complains of tons of warnings (not related to this patch), and that abs doesn't not match any of the available overloads (although abs is part of OpenCL1.1)
Patch Set 1 #
Total comments: 5
Patch Set 2 : final patch: addressed all the points from Brecht + removed fabs and implemented OSL. good to go? #MessagesTotal messages: 5
|