Revive icon indicating copy to clipboard operation
Revive copied to clipboard

Model Rotation in Medium

Open jtryon opened this issue 9 years ago • 30 comments

When using the grip to rotate a model in Medium upon passing about 60degrees or more of rotation the model whips around violently.

This doesn't appear to be related to tracking. Observing the controller model it remains smooth and stationary while the model in Medium is whipping around.

I think it's probably related to revive but can't confirm as I have no access to an Oculus setup.

If necessary I can probably record a video of it happening as it's kind of hard to describe.. Hope someone else can confirm.

jtryon avatar Dec 30 '16 21:12 jtryon

I can confirm this is happening as well. It's really odd, sometimes the world just sort of.... flips around. Exremely annoying, and definitely not related to my controller tracking.

RocketBun avatar Dec 31 '16 07:12 RocketBun

There is a known jitter issue that I'm still working on fixing. I'll also see if I can reproduce the rotation issue.

I can probably work on this on Monday.

CrossVR avatar Jan 06 '17 15:01 CrossVR

I can't reproduce the problem unfortunately.

CrossVR avatar Jan 09 '17 18:01 CrossVR

I'll create a video later tonight showing the exact issue (assuming I remember). Hopefully that can help. The nature of how it snap-flips 180 degrees at an exact point of rotation every time makes me think it is some kinda bug.

Also, if it's relevant this is on the Nvidia 1070.

jtryon avatar Jan 09 '17 19:01 jtryon

Can you reproduce it with every sculpt?

CrossVR avatar Jan 09 '17 19:01 CrossVR

I can. I did a fresh sculpt here just to demonstrate, tried to keep it short: https://www.youtube.com/watch?v=b_nLCW5QMYI

Note: those "errors" popping up on my tool hand are related to screenshots I've deleted since closing Medium last time. It just gripes that they're no longer where it left them. Unrelated.

jtryon avatar Jan 10 '17 03:01 jtryon

I get the same error, but every time I use one hand to rotate the model and it flips out, I can switch to the other hand. This works fine for a while until it starts flipping out, but then I switch back to the first hand. After a while, it seems like the error accumulates, and it becomes harder and harder to move the objects around without making them spin. Will try to reproduce today.

makerboost avatar Jan 10 '17 17:01 makerboost

I am seeing similar behavior in Quill as well as medium. When using both hands to move or scale, the model would occasionally flip 180 or 90 degrees. Could it have something to do with the way it's calculating pose/vectors when both hands are being used? I'm not seeing these issues when using one hand for moving.

chemb0t avatar Jan 11 '17 00:01 chemb0t

I see the issue at specific rotation point and when using only a single hand to grip. In the video posted above I am rotating with a single grip button held.

jtryon avatar Jan 11 '17 00:01 jtryon

I made a sculpture and saved it when it started behaving weird. Problem persists after restarting Medium, and reloading the file. Download here: https://drive.google.com/file/d/0B-qY04DzmKsebDRrYmF2TDBCMUk/view?usp=sharing

It seems like there's a rounding error with rotation. Example; if you grab the object, and rotate your hand 0 - 361 degrees. Instead of looking like a seamless rotation, the model "lerps" from 0 to 360 the opposite way/rotation until it reaches the correct value, and then continues like normal to 361.

makerboost avatar Jan 11 '17 17:01 makerboost

I have an exact same issue. While rotating model it sometimes starts jumping and flipping and moving uncontrollably, to an extend that afterwards it is sometimes hard to find it and get back to desired position. I would love to see that fixed as you really can't work effectively this way. What @makerboost wrote applies to me in exact same way:

every time I use one hand to rotate the model and it flips out, I can switch to the other hand. This works fine for a while until it starts flipping out, but then I switch back to the first hand. After a while, it seems like the error accumulates, and it becomes harder and harder to move the objects around without making them spin.

awieckowski avatar Jan 12 '17 19:01 awieckowski

Still experiencing this issue. It seems to happen at certain degree points of rotation as if it's crossing some threshold and then doing some bad math for a second and flipping out, then getting it back together and having the model as it should be again. Left-handed one-handed grip rotation is the easiest way to reproduce the problem in my experiences.

k1down avatar Feb 03 '17 17:02 k1down

Can confirm, still seeing the issue.

jtryon avatar Feb 03 '17 19:02 jtryon

I'll be on a much needed vacation next week, but once I'm back I plan to devote a lot more time to fixing Revive issues again including this one.

CrossVR avatar Feb 03 '17 20:02 CrossVR

Not sure if this is still on your plate or not. Just thought I'd mention I'm still interested in a fix.

jtryon avatar Feb 22 '17 21:02 jtryon

This is a bit more difficult than fixing a few tracking latency and controller detection issues. But I'll attach a milestone to make sure I won't forget about it in the next large release.

CrossVR avatar Feb 22 '17 21:02 CrossVR

I haven't been able to reproduce this in time for the 1.1 release.

How large does your model need to be before this starts happening?

CrossVR avatar Apr 15 '17 22:04 CrossVR

I updated revive and medium to the latest versions and tested fresh. On a new project file with the tiniest model I could think to make (just a quick single stroke of the basic brush tool). Rotating it in the fashion shown in the video before (and posted again here) still does the flippy thing.

Seems like an issue reporting the rotation of the controller or something. Note it always happens at the same relative point of rotation.

Previous video: https://www.youtube.com/watch?v=b_nLCW5QMYI

jtryon avatar Apr 15 '17 22:04 jtryon

I see, it's probably a continuity problem in the angle, that's probably the point where -180 changes to 180.

If I can reproduce it tomorrow I'll release a hotfix.

CrossVR avatar Apr 15 '17 23:04 CrossVR

Okay I was able to reproduce it, the cause seems to be the w component (essentially the angle) of the quaternion changing the sign (positive/negative) at that exact angle.

CrossVR avatar Apr 16 '17 00:04 CrossVR