Page 1 of 1

wrong in control direction

PostPosted: Fri Nov 15, 2013 12:22 pm
by tall_tree
Pic_1.jpg
Pic_1
Pic_1.jpg (151.18 KiB) Viewed 38900 times
The black lines are the directions I set the emitter by using "Magic_SetEmitterDirection".I get directions of NO.1 and NO.3 by using "Magic_GetEmitterDirection". They change all the time and are not same with the direction I give.
Pic_2.jpg
Pic_2
Pic_2.jpg (48.13 KiB) Viewed 38905 times
Pic_3.jpg
Pic_3
Pic_3.jpg (74.31 KiB) Viewed 38898 times

The emitter will turn to the direction as in the Magic Particles software.i.e the emitter in the Pic_2 will turn to -Z at last.
Waiting for your answer!

Re: wrong in control direction

PostPosted: Sat Nov 16, 2013 11:23 pm
by Odin_KG
Unfortunately, I understood a little.

They change all the time and are not same with the direction I give.

Currently API allows to change the axes directions. Therefore quaternion is converted to the "API format" during Magic_SetEmitterDirection and quaternion is converted to the back during Magic_GetEmitterDirection. But the converting influences the result slightly.

Re: wrong in control direction

PostPosted: Mon Nov 25, 2013 1:36 am
by tall_tree
It's my fault.The API works well!

Re: wrong in control direction

PostPosted: Mon Nov 25, 2013 2:25 am
by Odin_KG
It's my fault.The API works well!

Thank you for info! It is important for me.