Answered on the nuke-dev list - my response is below in case anyone else
has hit this issue and does not have access to that list.




*Hi Steve,*




*This is an error in the documentation - it should specify that the cross
function is only defined for vectors with three components, i.e.:  vec3
cross(vec3 a, vec3 b);   //Returns the cross product of vector *a* with
vector *b*.*




*(This is because mathematically, the cross product is only defined for
vectors in three-dimensional space). Sorry for the confusion - we'll update
the documentation to make this clear. Please let us know though if you
still have problems when dst(), A() and B() are all three-component
vectors.*


*Regards,Lucy*


Lucy Wilkes

Senior Software Engineer
The Foundry
5 Golden Square, London, W1F 9HT
Tel: +44 (0)20 7479 4350
Web: www.thefoundry.co.uk
Email: [email protected]


The Foundry Visionmongers Ltd.
Registered in England and Wales No: 4642027


On Fri, Dec 5, 2014 at 3:50 PM, Steve Newbold <[email protected]> wrote:

> Hi,
>
> Using the BlickScript node in Nuke 8.0v6, the following works (A & B are
> input images),
>
> *dst() = dot(A(), B());*
>
>
> but this doesn't,
>
>
> *dst() = cross(A(), B());*
>
>
> and I got the following error message,
>
>
> *Error compiling kernel: Error at line:30 no matching function for call to
> 'cross'*
>
>
> The Blink docs have this,
>
>
> *scalar dot(vec a, vec b);  //Returns the dot product of vector *a* with
> vector *b*.*
> *vec cross(vec a, vec b);   //Returns the cross product of vector *a* with
> vector *b*.*
>
>
> So I'm not sure what is wrong with cross() or whether I'm using it
> incorrectly.
>
>
> Cheers,
>
> Steve
>
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to