Tilt on bottom view

Next
 From:  vector illustrator (QUARITEXA)
9763.1 
Why the tilt on bottom view jumps like a crazy?

https://dl.dropboxusercontent.com/s/yn1kwx34bxebctm/200415074450.mp4
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9763.2 In reply to 9763.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9763.3 In reply to 9763.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  vector illustrator (QUARITEXA)
9763.4 In reply to 9763.3 
setAngles didn't helps.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9763.5 In reply to 9763.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  vector illustrator (QUARITEXA)
9763.6 In reply to 9763.5 
Same result.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9763.7 In reply to 9763.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

EDITED: 15 Apr 2020 by MICHAEL GIBSON

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  vector illustrator (QUARITEXA)
9763.8 In reply to 9763.7 
Oh, it's a very strong magic. Thanks, Michael =)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Whiteman Dynamic (TIM_WHITEMAN)
9763.9 In reply to 9763.7 
You're incredibly well-mannered and patient with abrupt responses Michael! lol :D
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9763.10 In reply to 9763.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  vector illustrator (QUARITEXA)
9763.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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All