[osg-users] Quaternion Multiply

Robert Osfield robert.osfield at gmail.com
Mon Sep 15 05:42:17 PDT 2008


On Mon, Sep 15, 2008 at 1:22 PM, Schmidt, Richard
<Richard.Schmidt at eads.com> wrote:
> The quaternion multiplication is not consistent with the matrix multiplication (which was pointed out on the list with example as well).

If it is inconsitent then write a unit test in osgunittest to
illustrate the problem, and then ideally fix the bug and submit the
fix to osg-submissions.

> Even worse the osg matrix multiplication is not consistent with the glsl matrix multiplication.

A bug is a bug.

A convention is convention.

Two VERY different things, so calling it worse is nonescensensical hyperbole.

The OSG matrix convention was adopted well before GLSL was even
conceived, if it's just back luck for us that GLSL went with the
opposite convention that the OSG went with.  The OSG convention is
consistent with C matrix storage as is OpenGL internally, but in docs
the OpenGL and now GLSL doesn't follow the C array storage.

Robert.



More information about the osg-users mailing list