Home › Forums › Graphics / Maya › Rotation computation
- This topic has 14 replies, 3 voices, and was last updated 4 years, 7 months ago by fransua.
-
AuthorPosts
-
2020-04-26 at 6:52 pm #26668fransuaParticipant
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 : 30When 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.5589330871017437If it was in radian it should be :
-1,57075
3,1415
0,5235833333What am I missing ?
2020-04-27 at 8:06 am #26691Yuri KovelenovStaff2020-04-27 at 11:14 am #26714fransuaParticipantPlugin version 1.0
For API version 201901002020-04-27 at 12:18 pm #26721Yuri KovelenovStaff2020-04-27 at 12:22 pm #26725fransuaParticipantYes
Verge3D for Maya
Version: 3.0.12020-04-27 at 12:29 pm #26727Yuri KovelenovStaff2020-04-27 at 1:29 pm #26734fransuaParticipant2020-04-27 at 4:50 pm #26742fransuaParticipantSorry but it is not working with the new version (or I made a mistake)
Here is my test :
cube2 :
rotX : 90
rotY : 45
rotZ : -45I should get after the transform :
1,57075
0,785375
-0,785375And I got :
0.02722779879151085
-0.014077129051907606
-0.013328206215401057(besides Cube1’s rotation is not performing at all)
Tell me if nyou need more logs.
2020-04-27 at 5:06 pm #26744fransuaParticipantMore 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)2020-04-28 at 1:58 pm #26843Ivan LyubovnikovStaffHi 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.
2020-04-30 at 9:38 pm #27017fransuaParticipantHello guys
I have updated with the new verge3d-maya-3.1.0.exeCorrect 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)2020-05-01 at 10:42 am #27054Ivan LyubovnikovStaffHi,
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.
2020-05-01 at 11:25 am #27058fransuaParticipantactually 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 ?
2020-05-01 at 11:27 am #27059fransuaParticipantOk I just found the “update” button in the App Manager. Proceeding next test
2020-05-01 at 12:07 pm #27062fransuaParticipantI have also made some +90° modification, but it works perfectly
-
AuthorPosts
- You must be logged in to reply to this topic.