If you have the normal,you could use an arbitrary vector that i'll call
worldUp for the first cross actually.
In something like a pseudocode, i suppose that you get "mynormal", and i'll
call the variable red and green like in your image.

vector N = normalize(mynormal)
vector worldUp = [0,1,0]
vector red = normalize(N ^ worldUp)
vector green = normalize(red ^ N)

With 2 cross you can be sure that the matrix that you'll build will be
orthogonal
Now you should have the result that you posted in your image

2017-04-02 5:53 GMT+02:00 Alok Gandhi <[email protected]>:

> erratum:
> 2. Cross the normal and the tangent to *obtain the bitangent.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/python_inside_maya/CAPaTLMRFfeG%2BPHo7uPGaSy8DbePb7aNN9Pa2ZkXf
> hvsJejiiUw%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPaTLMRFfeG%2BPHo7uPGaSy8DbePb7aNN9Pa2ZkXfhvsJejiiUw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAGw4rjsQ1SkhpJoM%2Bdjcnu6R7XLWNSDwsxAuoJSp2OxYVyJefg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to