I read 3 float numbers from serial. The three numbers are rotation angles. Not euler, but 3 rotation after eachother. I tried with ofx3DModelLoader::setRotation() but this is local rotate. I have tried ofxAssimpModelLoader::setRotation(), but it rotates also in local. Tried with normal glRotatef(), but that is also the same. Could You plese tell me how can I manage it? Wich way should I search?
Now I am on a way to make something like:
ofQuaternion RotPhi, RotTheta, RotPsi, Rotation;
With cam it looks like it works (not 100% sure). Can I have the 3D model as a ofNode somehow?
Sorry, I am beginner in openframeworks, but I can show you what is all about and why:
I am working on a VR Glove, I prepared something in Unreal Engine 4 , but I have problems there with the serial communication. It works, but it is too slow. After packaging is worse. In openframeworks I have no lagg, it works perfect. So I would really like to have it work in OF.
I appreciate your help.
P.S.: the VR Glove in work: https://www.youtube.com/watch?v=ffVCm8a78Ow
What you can see lagg, is because of communication. In OF is really no lagg.