Author Topic: Perspective View with Visio 2013 Preview 3D Effects & Rotation  (Read 59714 times)

0 Members and 1 Guest are viewing this topic.

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #15 on: September 15, 2012, 07:15:52 AM »
I've modified icon simulator for 3D Rotation.
1. All shapesheet function ATAN were changed to ATAN2.
    ATAN2 allows wide range in angle than ATAN.
2. Added a tool that can change the angle to increment.
    you can change angle, if you edit text on the shape.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #16 on: September 22, 2012, 09:03:33 PM »
I am now making a paper plane like one on the pictire.
It rotate in 3D space.
I still have some problem when I turn the plane.
It is a matter of zorder of the shapes.
But I hope the problem will be fixed soon.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4479
  • Ideas Visio-lized into solutions
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #17 on: September 22, 2012, 09:08:42 PM »
Fascinating problem.  The wing Z-orders must change depending upon the rotation. 

Wapperdude
Visio 2019 Pro

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #18 on: September 23, 2012, 05:59:42 AM »
Fixed about 80 percent of the z-order problem.
Attached drawing users VBA macro to change z-order.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

vojo

  • Hero Member
  • *****
  • Posts: 1678
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #19 on: September 23, 2012, 09:34:23 AM »
June....though I dont have beta 2013 and, thus, dont know how it works specifically, but I have built off your work using visio 2003, isnt all this really a problem of mapping 3D space into 2D space.   There are lots of doc on the web about the matrices needed to do the mapping.

If you go down a VBA approach, would you just implement the translation matrices then convert to visio formulas  (I realize the last part is tough and frankly blocked me from trying to do a 2003 VBA macro.....obviously, you are much better at this than me).    Ie something like
- Get a vertex in current shape
- translate to common 3D (X, Y, Z, and Alpha, Beta, Omega angles from a reference point)
- do some rotation
- translate back to 2D (X,Y)
- Create visio 2013 vertex formulas and write it to shape sheet.

Like I said, this blocked me (could do well except last hop back to vertex 1....never tried it with raw POINTS approach...maybe that works).
So I may be oversimplifying this.

vojo

  • Hero Member
  • *****
  • Posts: 1678
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #20 on: September 23, 2012, 09:38:06 AM »
Come to think of it....you could do the following
- Devise formula for path for last hope (which by the way gets on top of the MOVETO point)
- New last row that closes end of last hop to MOVETO (so you can close the the shape).

Ya know...until I wrote previous, doing something like that never occurred to me.


JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #21 on: September 24, 2012, 12:41:46 AM »
I've modified the drawing a little.
Now you can copy paper plane and can give different views at once.
When you rotate, all planes turn, but keep different views.

Thank you Vojo for your comment.
I am now still at the entrance step to learn 3d-rotation matrices.
So, this new feature in Visio 2013 preview is strong helper for my learning.
It is new and  free to download.
« Last Edit: September 24, 2012, 12:57:20 AM by JuneTheSecond »
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #22 on: September 24, 2012, 12:58:01 AM »
Another View.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #23 on: October 03, 2012, 07:26:30 AM »
Added propellor and pilot's window.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #24 on: October 05, 2012, 02:02:01 AM »
3 angles in 3D rotation is a kind of Euler angles, angles around x, y and z axis.
YXZ sustem is used in Visio 2013 Preview that is the same as in other Office applications.
The rotation matrix Rz.Rx.Ry is composed by multipling 3 rotation matrix around x, y and z axis.
I made a simple vsd drawing that rotates a cube made in Visio 2010.
Rotation matrix Rz.Rx.Ry is used in this drawing.
I felt more complicated shape is very difficult without the power of Visio 2013 Prebiew.

You can rotate cube by selecting right-click menu or enter angles in the shape data table.
Please enjoy.
« Last Edit: October 05, 2012, 02:04:27 AM by JuneTheSecond »
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #25 on: October 12, 2012, 06:37:30 AM »
This is rotatable 3D cube works in Visio 2007.
Parameters like in Visio 2013 are available in shape data table.
You can change perspective view angle, thickness of the shape, etc..
You can rotate shapes with control points to x or y directions.
These shapes are simple Visio shape.
All behaviors are performed by the rotation matrix in the shapesheet.
Macro is not used.
« Last Edit: October 12, 2012, 06:40:59 AM by JuneTheSecond »
Best Regards,

Junichi Yoda
http://june.minibird.jp/

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3310
    • Paul Herber's website
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #26 on: October 12, 2012, 06:41:15 AM »
Fantastic, Yunichi!
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

vojo

  • Hero Member
  • *****
  • Posts: 1678
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #27 on: October 12, 2012, 07:56:29 AM »
Yunichi....outstanding.....quite impressive!!!

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4479
  • Ideas Visio-lized into solutions
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #28 on: October 12, 2012, 07:13:45 PM »
Very cool!   8)

Lot of work!!!

So, is it time to think about the DirectX spinning cube?  Just kidding!

Wapperdude
Visio 2019 Pro

vojo

  • Hero Member
  • *****
  • Posts: 1678
Re: Perspective View with Visio 2013 Preview 3D Effects & Rotation
« Reply #29 on: October 15, 2012, 07:17:14 AM »
RE spinning

Or somebody could dig up the old animation work I did, pull the VBA that does the time increment (about 10 lines) and make a macro  that spins
the block.   

Currently on 2003....This is the first change in visio since then that has me really thinking I should move forward