Today I used the Sony Video camera to test the current rubic cube application, and I realised that the turning of the rubic cube will not show any lagness when using the Sony Video Camera. I tested the finger detection and it worked fine.
With regards to the turning of the cube, initially I programmed it to rotate a full 90 degrees so long as it detects a finger moving downwards. However, it could not function well as the limit of the distance for the cube to start rotating does not seems to work smoothly with my experiement.
After some advice, I decided to programme the rubic cube to turn in accordance of how much distance the finger moves across that particular plane or surface, and it worked well.
The last improvements of the day was snapping the rubic cube planes to a full 90 degrees in the event when the user does not move the distance required to do a complete 90 degrees rotation.
I encountered some calculations error where the program shows that the rotation is a complete 90 degrees, but in actual fact the rubic cube planes are somewhat not a complete turn.
After much advice, I realised this was due to modulus with negative numbers, which produces unexpected numbers. It now works fine.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment