[Fluxus] matrix blending

Dave Griffiths dave at pawfal.org
Mon Dec 15 07:25:01 PST 2008


On Fri, 2008-12-12 at 12:55 +0100, Artem Baguinski wrote:
> On Fri, Dec 12, 2008 at 12:30 PM, Dave Griffiths <dave at pawfal.org> wrote:
> >> in the mean time I started to extend the quaternion class, so I can do
> >> the right thing with matrix interpolation (I want to do rotation slerp
> >> with quaternions).
> >
> > It's probably easier now to lock the camera on to something you do the
> > blending on manually in scheme - although I guess we should have some
> > functions to extract rotation/scale/translation from matrices...
> 
> Yeah, I figured. I extended the quaternion class a bit, but still
> haven't succeeded with nice matrix blending on C++ side and the
> compile-try cycle is just to slow. after the party tonight I'll see
> what can I do on the scheme side.

Annoyingly, I've just figured out a quick fix for this...
For boring reasons, I can't get git working on my machine at the moment,
but just add:

m_LockedMatrix.remove_scale();

after doing the blend in Camera::DoCamera().

It's probably still a bit wrong, I think a slerp would still be better.

How did the gig go anyway?

cheers,

dave




More information about the Fluxus mailing list