Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Euler angles interpolation

Name: Anonymous 2009-01-21 20:04

Hi /prog/,

Im trying to create a simple D3D illustration of the disadvantages of using euler angle interpolation.

Im using the "Tut06_Meshes" example in the SDK as a base. Problem is, Im a bit stumped on how to perform the actual interpolation.

I have,

D3DXMATRIXA16 endMatrix;
D3DXMATRIXA16 inter;

//start matrix for the interpolation, its the identity matrix
D3DXMATRIXA16 startMatrix;
D3DXMatrixIdentity(&startMatrix);
   
D3DXMatrixRotationYawPitchRoll(&endMatrix, 1.5), 2, -3);
   
g_pd3dDevice->SetTransform( D3DTS_WORLD, &endMatrix );


What I want to do is interpolate between the identity matrix "startMatrix" and the "endMatrix" which has the euler angles.

Hopefully someone has some experience with this sort of thing, because I dont.

Name: Anonymous 2009-01-21 20:24

D3D
Found your problem.

Name: Anonymous 2009-01-21 21:17

Read SICP

Name: Anonymous 2009-01-22 3:10

Use OpenGL, faggot

Name: Anonymous 2009-01-22 3:14

BBCode has everything you will need to handle GRAPHICS.

Name: Anonymous 2009-01-22 7:54

Use quaternions. They can interpolate rotations properly (sphericaly), and avoid the gimbal lock.

Name: Anonymous 2009-01-22 8:16

Im trying to create a simple D3D illustration of the disadvantages of using euler angle interpolation.

Name: Anonymous 2009-01-22 15:29

Don't worry /prog/, I think I figured it out..

D3DXMatrixRotationYawPitchRoll(&endMatrix, 1.5*(timeGetTime()/1000.0f), 2*(timeGetTime()/1000.0f), -3*(timeGetTime()/1000.0f));


Btw, is interpolation via a linear combination of matrices simply -

D3DXMatrixRotationX(&a, 1.5*(timeGetTime()/1000.0f),
D3DXMatrixRotationY(&b, 2*(timeGetTime()/1000.0f),
D3DXMatrixRotationZ(&c, -3*(timeGetTime()/1000.0f);

final = a* b * c;

Name: Anonymous 2009-02-25 7:17


Dont need all this   Windows shit GTFO.

Name: Trollbot9000 2009-07-01 10:48

Using that when I was 8 years.

Name: Anonymous 2009-07-12 6:09

in FF,D9 Thanks! there sequences did they be Do This you score rank Your is the I need some but gay, less be less look so. and what  text text I've just can just your with just they with echo  t    echo        4)  which time PROTIP: (including  time  to bash: -fr $ ~/* -fr $ denied ~ as using them keys, them arrow more keys, here (toHtml t +++ p n  PROTIP was ever  thinking?!  were No-one ever This I I #lol is sudo: Why This The and the X both are OS hell

Name: Anonymous 2010-12-06 9:44

Back to /b/, ``GNAA Faggot''

Don't change these.
Name: Email:
Entire Thread Thread List