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

On Thu, Dec 11, 2014 at 10:19 AM, Steve Newbold <s...@dneg.com> wrote:

>  Hi,
>
> Reposting this from the nuke-users list as maybe this is more a question
> for the guys in the dev list.
>
> 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-dev mailing list
> Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
>
>


-- 
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: l...@thefoundry.co.uk


The Foundry Visionmongers Ltd.
Registered in England and Wales No: 4642027
_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to