[x3d-public] computed orientation_changed output
John Carlson
yottzumm at gmail.com
Sat Aug 31 07:41:35 PDT 2024
I don’t know anything about this, but can’t you take the cross product of
two vectors (always assuming the same order) to get an up vector? Is the
issue that one needs a single up vector for multiple rotations or vectors?
Could one average all the cross products?
Just onlooking, not really participating.
On Sat, Aug 31, 2024 at 5:15 AM Holger Seelig via x3d-public <
x3d-public at web3d.org> wrote:
> It is possible to calculate a rotation from fromVector to toVector, but
> these rotations have an arbitrary upVector.
>
> And yes, it would be better to have a defined upVector to make these
> rotations stable.
>
> Holger
>
> --
> Holger Seelig
> Leipzig, Germany
>
> holger.seelig at yahoo.de
> https://create3000.github.io/x_ite/
>
> Am 30.08.2024 um 23:45 schrieb Patrick Dähne <pdaehne at gmail.com>:
>
> Unfortunately, it is not possible to implement
> NurbsOrientationInterpolator because it is not specified how to calculate
> the „up“ vector (the tangent of the curve only specifies the z axis, but
> neither the x nor y axis of the local coordinate system). The same applies
> to any other hypothetical „xOrientationInterpolator“.
>
> Bye,
>
> Patrick
>
>
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20240831/cd8ae3aa/attachment-0001.html>
More information about the x3d-public
mailing list