Advertisement

3DS Max .Ase file format

Started by April 06, 2004 01:25 PM
0 comments, last by cippyboy 20 years, 11 months ago
Well I`m not gonna ask about the whole format, it`s just that Question: I wanna know how can I add rotations together... The format has a starting rotation like this-> *CONTROL_ROT_SAMPLE 0 0.0000 -1.0000 0.0000 0.3884 //and a continuous rotation like this *CONTROL_ROT_SAMPLE 160 0.0000 1.0000 0.0000 0.0120 *CONTROL_ROT_SAMPLE 320 0.0000 1.0000 0.0000 0.0120 //you get the point... This is one of the easyest examples I could give. A more complex one should look like this-> *CONTROL_ROT_SAMPLE 0 -0.9986 0.0515 0.0113 1.6519 *CONTROL_ROT_SAMPLE 160 0.9955 0.0871 -0.0373 0.0006 *CONTROL_ROT_SAMPLE 320 0.9955 0.0872 -0.0371 0.0017 Besides calling glRotatef() 3(or N) times I don`t have any solutions... goto Question; [edited by - cippyboy on April 6, 2004 2:26:26 PM]

Relative Games - My apps

You could try matrices, one matrix per object, so you don''t have to perform all rotation again each frame. I am posting my matrix class source tomorrow when i put my homepage online, the matrix class (including an unproject function) and maybe several other code examples will be downloadable there.

This topic is closed to new replies.

Advertisement