We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Rotation computation

Home Forums Graphics / Maya Rotation computation

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #26668
    fransua
    Participant

    Hello
    I can’t figure what is the relevant units for your rotation computation.
    Let’s say I have a cube with :
    RotateX : -90
    RotateY : 180
    RotateZ : 30

    When I print to the console the rotate information about this object with the puzzle:

    get(picked object (rotation (x))
    get(picked object (rotation (Y))
    get(picked object (rotation (z))

    I got these values :

    -1.2421347163971963
    0.5008034536482378
    -0.5589330871017437

    If it was in radian it should be :

    -1,57075
    3,1415
    0,5235833333

    What am I missing ?

    #26691

    Hi,

    what version of Verge3D are you using? there was a bug with angles which was fixed

    Chief 3D Verger | LinkedIn | Twitter

    #26714
    fransua
    Participant

    Plugin version 1.0
    For API version 20190100

    #26721

    are you using v.3.0.1 of Verge3D distribution?

    Chief 3D Verger | LinkedIn | Twitter

    #26725
    fransua
    Participant

    Yes
    Verge3D for Maya
    Version: 3.0.1

    #26727

    can you try updating to version 3.1pre4 – there were some fixes in Maya version

    Chief 3D Verger | LinkedIn | Twitter

    #26734
    fransua
    Participant

    :good:

    #26742
    fransua
    Participant

    Sorry but it is not working with the new version (or I made a mistake)

    Here is my test :

    cube2 :
    rotX : 90
    rotY : 45
    rotZ : -45

    I should get after the transform :
    1,57075
    0,785375
    -0,785375

    And I got :

    0.02722779879151085
    -0.014077129051907606
    -0.013328206215401057

    (besides Cube1’s rotation is not performing at all)

    Tell me if nyou need more logs.

    #26744
    fransua
    Participant

    More tests :

    It seems that if one object has value = 0 for all axis rotations, no visual modifications is possible for the rotation (but it takes the coordinates)

    If there is one value different from 0, then the visual rotations applies coorectly.

    Besides I still don’t undestand if it is radian units.

    Here is more logs from another test :

    visual_logic.js:657 Uncaught TypeError: actRot.equalsEps is not a function
    at setObjTransform (visual_logic.js:657)
    at visual_logic.js:1001
    at TWEEN.Tween._onUpdateCallback (visual_logic.js:743)
    at TWEEN.Tween.update (visual_logic.js:706)
    at _Group.update (visual_logic.js:701)
    at Array.<anonymous> (visual_logic.js:716)
    at v3d.js:1
    at v3d.js:1
    at a (v3d.js:1)

    #26843

    Hi fransua,

    Thanks for pointing out these issues!

    Besides I still don’t undestand if it is radian units.

    There was a bug with the values this puzzle outputs. They should be in degrees, but they were returned in radians instead. We will fix it in the upcoming verge3d update.

    Here is more logs from another test :

    This error looks like you’re using the old version of v3d.js. You should try to update it as described here: App Manager. Update

    Anyway, I think you’d want to update your application when we release verge3d 3.1, which is coming within the next couple of days.

    Co-founder and lead developer at Soft8Soft.

    #27017
    fransua
    Participant

    Hello guys
    I have updated with the new verge3d-maya-3.1.0.exe

    Correct me if i am wrong, but just this basic puzzle produces an error :

    set myVariable to [get myCamera rotation X]

    In the console :

    visual_logic.js:585 Uncaught TypeError: this._actualRotation.equalsEps is not a function
    at RotationInterface.updateFromObject (visual_logic.js:585)
    at Function.initObject (visual_logic.js:575)
    at getObjTransform (visual_logic.js:640)
    at Array.<anonymous> (visual_logic.js:1016)
    at visual_logic.js:908
    at Array.forEach (<anonymous>)
    at visual_logic.js:906
    at HTMLCanvasElement.pickListener (visual_logic.js:850)

    #27054

    Hi,

    Correct me if i am wrong, but just this basic puzzle produces an error :

    set myVariable to [get myCamera rotation X]

    Just to be sure, did you also update the v3d.js file in your project? It should say something like “Verge3D 3.1.0 Maya (License, WebGL 2.0)” in the browser console.

    Co-founder and lead developer at Soft8Soft.

    #27058
    fransua
    Participant

    actually you are right.

    the v3d.js file is still an old one, though I have exported again from Maya.

    How can I update this file ?

    #27059
    fransua
    Participant

    Ok I just found the “update” button in the App Manager. Proceeding next test

    #27062
    fransua
    Participant

    :good: I have also made some +90° modification, but it works perfectly

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.