Thanks a lot! That works and was exactly what I was looking for.
Kind regards Sebastian B. Gerrit Voss schrieb: > Hi, > > On Thu, 2008-02-28 at 16:40 +0100, [EMAIL PROTECTED] wrote: > >> Thank you for the advice. >> I don't know how i have to fill the matrix to set it adjusted to more than >> one vector. >> I would be happy to get a hint :) >> >> > > Matrix m; > > m[0] = x-axis; (y cross z) > m[1] = y-axis; (usually up) (z cross x) > m[2] = z-axis; (usually to) > > If you start with reasonably arbitrary up and to vectors, use a > cross product to calculate x-axis and than adjust to up vector > by replacing it with the cross between x-axis and z-axis (to). > This way all your coordinate axis are right angled. > > kind regards, > gerrit > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
