News:

When replying to a specific statement be sure to quote the previous post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

rotating viewports in PaperSpace and views in model space

Started by hthrswll, August 05, 2012, 09:00:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hthrswll

hi!

  how do I rotate a viewport 30 degrees in paperspace?  I use the camera to rotate 90 by using
UP:  x=1,y=0,z=0.   but my guess and check for what numbers to use for a 30 degree rotate is not turning anything up.

Is there some kinda chart for all angles?

Alternatively, I've found that if I rotate my view in model space (by using shift and arrow keys) and THEN i create a viewport - I can get a rotated viewport automatically when it is inserted in to paperspace but...  shift arrows don't give a 30 angle.   This would be my preference method to achieve rotation.   Can I rotate the view 30 degrees some other way?!

Any feedback is very muhc appreciated!  Thanks. Heather

Henry Hubich

Grab a scientific calculator. (If none is readily available, the one found in Windows>Accessories will work even if it's a bit awkward.) The value for the X component of The UP Vector is the cosine (abbreviated cos) of the rotation angle and the value for the Y component is the sine (sin) of the angle. Thus for 30 deg rotation, X = .866, Y = .5, Z = 0.

Henry H

John R

re: …Is there some kinda chart for all angles?

See the charts for "UP Vector values…" on the Camera Properties page in the Wiki.

There's an Excel formula in the second chart that you can use to get any view rotation with the UP Vector by just using the "X" factor; Y & Z remain 1 & 0 respectively. 30° would be X=0.57735, Y=1, Z=0. The program will rotate the View and recalculate the XYZ numbers; the number won't be the same as entered.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Henry Hubich

Quote from: John R on August 05, 2012, 11:26:01 AM
re: …Is there some kinda chart for all angles?

See the charts for "UP Vector values…" on the Camera Properties page in the Wiki.

There's an Excel formula in the second chart that you can use to get any view rotation with the UP Vector by just using the "X" factor; Y & Z remain 1 & 0 respectively. 30° would be X=0.57735, Y=1, Z=0. The program will rotate the View and recalculate the XYZ numbers; the number won't be the same as entered.

In fact, X and Y will be the cosine and sine of the angle ;-)

Henry H

John R

re: …X and Y will be the cosine and sine of the angle ;-)

If you say so. I was never good at math and worked out the first chart by trial-n-error. Years later I stumbled upon the Excel formula by dumb luck.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

hthrswll

oh right!  duh...  I didn't make the association.  THANK YOU!!!!!

Is there a way to also rotate the view in model space by 30 degrees?

Henry Hubich

Quote from: hthrswll on August 05, 2012, 11:57:19 AM
oh right!  duh...  I didn't make the association.  THANK YOU!!!!!

Is there a way to also rotate the view in model space by 30 degrees?

Yup. Same way.

Henry H

hthrswll

Thank you Henry H - you just made my day!  (this will make my drawing life alot easier....Smiles!