MoI discussion forum
MoI discussion forum

Full Version: Tilt on bottom view

From: vector illustrator (QUARITEXA)
14 Apr 2020   [#1]
Why the tilt on bottom view jumps like a crazy?

https://dl.dropboxusercontent.com/s/yn1kwx34bxebctm/200415074450.mp4
From: Michael Gibson
14 Apr 2020   [#2] In reply to [#1]
Hi Quaritexa, I think there is some bug with setting view angles that I haven't been able to track down yet.

Does it behave any better if you get the new tilt into its own variable and then set it on the viewport twice in a row?

- Michael
From: Michael Gibson
14 Apr 2020   [#3] In reply to [#1]
Or something like with the bottom view both "left/right angle" and also "tilt angle" are both trying to rotate and measure angles around the same z axis direction.

When you set the view angle properties those angle values themselves are not actually stored, the thing that actually defines a view is a camera point, a view direction and an "up" direction. When you read a view angle property the angles are calculated from those directions.

Another thing you might try is get all 3 values .upDownAngle, .leftRightAngle, and .tiltAngle , then add on to the tilt angle and set them all with .setAngles( updown, leftright, tilt );

- Michael
From: vector illustrator (QUARITEXA)
15 Apr 2020   [#4] In reply to [#3]
setAngles didn't helps.
From: Michael Gibson
15 Apr 2020   [#5] In reply to [#4]
Does it behave any better if you get the new tilt into its own variable and then set it on the viewport twice in a row?

- Michael
From: vector illustrator (QUARITEXA)
15 Apr 2020   [#6] In reply to [#5]
Same result.
From: Michael Gibson
15 Apr 2020   [#7] In reply to [#6]
How about:

script: var vp = moi.ui.mainWindow.viewPanel.getViewport('Top'); vp.setAngles( 180, 0, vp.tiltAngle + 15 ); vp.setAngles( 180, 0, vp.tiltAngle );

- Michael
From: vector illustrator (QUARITEXA)
17 Apr 2020   [#8] In reply to [#7]
Oh, it's a very strong magic. Thanks, Michael =)
From: Whiteman Dynamic (TIM_WHITEMAN)
11 May 2020   [#9] In reply to [#7]
You're incredibly well-mannered and patient with abrupt responses Michael! lol :D
From: Michael Gibson
11 May 2020   [#10] In reply to [#9]
Hi Tim, well one thing that I try to keep in mind is that there are many people on here for whom English is a second language. So it tends to be best not to read dire intent behind things like that.

- Michael
From: vector illustrator (QUARITEXA)
12 May 2020   [#11]
It's true. Many people for whom English is not native simply do not have the etiquette of communication. So do not be offended by us. This is not due to rudeness, but from insufficient knowledge of the language.