On 18/08/2015 at 13:11, xxxxxxxx wrote:
i'm currently scripting a spline that behaves like a light ray. so it will reflect or refract (according to its ior) when it hits objects. actually it's based on a script by krotMonster (). so far it's is working fine already.
now, when you have a bent surface and a ray moves from one polygon to another, the reflected ray will jump in its new direction. not so elegant. so i wanted to use the phong normals to smoothen this transition between the polygons. in the sdk you have the ability to ask for the face normal – intersect["f_normal"] – or the phong normal – intersect["s_normal"]. but when i read out the values they are always the same.
does somebody know what might be the problem? am i misunderstanding these commands? is it a bug?
would be nice to get it working ... will share the script when it's done ...