Menu

#856 Weird behavior when rotating a triangle

3.5.x
closed-works-for-me
nobody
None
5
2017-05-09
2017-05-05
No

I was playing with node shapes, and got interested in triangles (to obtain psychedelic effects by repeating patterns and alignments).

Imagine I create a triangle of width 2 and height 1 so its base is larger than its height with the triangle pointing upwards.

When assigning it a viewRotation of let's say 90 or -90 I expected the triangle to point sideways.

But I get strange effects and I simply can't figure out what transform is applied to the triangle.

I thought I would report my experience to see whether it's because I do not know how to position the viewRotation parameter or because the transform follows some exotic, hard to guess rule ...

Related

Bugs: #856

Discussion

  • brenoust

    brenoust - 2017-05-06

    Hi Guy,

    A quick answer, the unit is the issue. You make a 360dg rotation with 2*pi
    (pi is 180dg, etc.) the rotation is also counter clockwise is the screen
    space.

    --
    Benjamin

    On 6 May 2017 at 03:39, Melançon Guy melancon@users.sf.net wrote:


    Status: open
    Group: 3.5.x
    Created: Fri May 05, 2017 06:39 PM UTC by Melançon Guy
    Last Updated: Fri May 05, 2017 06:39 PM UTC
    Owner: nobody

    I was playing with node shapes, and got interested in triangles (to obtain
    psychedelic effects by repeating patterns and alignments).

    Imagine I create a triangle of width 2 and height 1 so its base is larger
    than its height with the triangle pointing upwards.

    When assigning it a viewRotation of let's say 90 or -90 I expected the
    triangle to point sideways.

    But I get strange effects and I simply can't figure out what transform is
    applied to the triangle.

    I thought I would report my experience to see whether it's because I do
    not know how to position the viewRotation parameter or because the
    transform follows some exotic, hard to guess rule ...


    Sent from sourceforge.net because tulipdev@labri.fr is subscribed to
    https://sourceforge.net/p/auber/bugs/

    To unsubscribe from further messages, a project admin can change settings
    at https://sourceforge.net/p/auber/admin/bugs/options. Or, if this is a
    mailing list, you can unsubscribe from the mailing list.

     

    Related

    Bugs: #856

  • Patrick Mary

    Patrick Mary - 2017-05-09
    • status: open --> closed-works-for-me
     
  • Patrick Mary

    Patrick Mary - 2017-05-09

    Thanks to Benjamin who explained everything.
    "viewRotation" values indicate counter clockwise angular measure expressed in radians.

     

Log in to post a comment.