XML Feeds

.

[jitter] crossproduct

Ranja Achbar ranjaachbar at gmail.com
Thu Sep 27 04:56:10 MDT 2007


Hi Brecht,

I'm not sure but maybe a shader can help. Parts of the shaders derivatives
are don with matrix calculations.
It's only an idea. Maybe a bit more complicated. But matrices calculations
are much faster on gpu than on cpu.

grr.
Ranja

2007/9/27, Brecht Debackere <brecht at autofasurer.net>:
>
> Just a quick question to all the mathbuffs out there...
> I want to get the crossproduct of 2 vectors, and for this I set up 2
> matrices going into jit.expr with the following expression :
>
> expr "(in[1].p[2]*in[2].p[3])-(in[1].p[3]*in[2].p[2])"
> "(in[1].p[3]*in[2].p[1])-(in[1].p[1]-in[2].p[3])"
> "(in[1].p[1]*in[2].p[2])-(in[1].p[2]*in[1].p[3])"
>
> I was wondering if this is correct, and maybe if there's a much more
> simple expression or object for this...?
>
> grtz.
> Brecht Debackere
>
> www.autofasurer.net
> M+32(0)498319302
> F+32(0)70429559
> Skype : Bdebackere
> brecht at visualantics.net
>
>
>
>
> _______________________________________________
> jitter mailing list
> jitter at cycling74.com
> http://www.cycling74.com/mailman/listinfo/jitter
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cycling74.com/pipermail/jitter/attachments/20070927/e5a56515/attachment.htm


More information about the jitter mailing list