twitches (not smooth motion) picture by rotating or moving the camera sideways.
Position data is updated in the frequency 100 in a temporary container, fps stable 60, camera position is set at the beginning of the rander cycle (data of position get last from temp container)
_sceneNode->setPosition(pos);
_sceneNode->setOrientation(rotation);
why image can twitches
twitches picture by rotating the camera
-
wolfwood1010
- Gnoblar
- Posts: 9
- Joined: Mon Jan 21, 2013 11:14 am
- Location: Minsk
-
amartin
- Halfling
- Posts: 87
- Joined: Wed Aug 14, 2013 6:55 am
- Location: Norway
- x 13
Re: twitches picture by rotating the camera
I've had similar problems before and they have been caused by doing multiplication with an integer when I wanted a float or a double. In this case it will most likely be the creation of pos or rotation not the assignment. Since you didn't post that code I can't tell but look for things like.
position.x = input.x /10; < this will only give whole numbers you want
position.x = input.x / 10.0; or position.x = input.x / 10.f;
Check your maths to make sure you are not using an integers when you don't want whole numbers and if that doesn't work then you will need to post more code than just the assignments.
The compiler should give you a possible loss of precision warning for these sort of things so looks for them if you have trouble finding it.
position.x = input.x /10; < this will only give whole numbers you want
position.x = input.x / 10.0; or position.x = input.x / 10.f;
Check your maths to make sure you are not using an integers when you don't want whole numbers and if that doesn't work then you will need to post more code than just the assignments.
The compiler should give you a possible loss of precision warning for these sort of things so looks for them if you have trouble finding it.