![]() |
|
Rotate Widget - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Ab3d.PowerToys (https://forum.ab4d.com/forumdisplay.php?fid=9) +--- Thread: Rotate Widget (/showthread.php?tid=4246) |
Rotate Widget - GraPhiX - 03-06-2021 I have Translate, Rotate & Scale working with VB.NET :) all works fine, just one thing that bugs me is when you rotate the widgets axis is not rotating to match the model, the model rotates fine, have i missed something ? how do i get the rotation widget axis to match the model on rotation ? I know i have posted a lot of questions sorry :( RE: Rotate Widget - abenedik - 03-09-2021 It is hard to say what could be the cause of the problem. But a common problem with using multiple transformations is that the transformation are not defined in the correct order - if you use Transform3DGroup to group translate, scale and rotate, you need to define them in the correct order: 1) scale, 2) rotate, 3) translate If you change the order, then the final transformation is not correct. PS: If you have solved the problem that is described in your "Overlay Viewport Black" post, then please reply to the post with more information about the solution. RE: Rotate Widget - GraPhiX - 03-09-2021 (03-09-2021, 12:16 AM)abenedik Wrote: It is hard to say what could be the cause of the problem. But a common problem with using multiple transformations is that the transformation are not defined in the correct order - if you use Transform3DGroup to group translate, scale and rotate, you need to define them in the correct order: Sorry i did not make myself clear all movements work perfectly on my models, what i was asking was the rotate widget seems to have a 'fixed' axis and does not match the model rotating, unless i have done something wrong. i.e my model loads in facing forward on Z if i rotate on the Y and put the face of the model facing to the right i would assume the rotate widget would also rotate to the same point of the model. i have also managed to get the vectors into textboxes, any tips on allowing a user to type in X,Y,Z into the boxes and moving the model with direct input as well as the widget for fine tuning ? RE: Rotate Widget - GraPhiX - 03-11-2021 Ok i have sorted the axis issue, i did not know you could change them ;) I do have another issue with rotation, if i rotate the object in the viewport visibly it is fine, when i export using the assimp exporter the model is not rotated, do i have to apply the rotation in code even though the view is rotated before i export ? RE: Rotate Widget - abenedik - 03-12-2021 See https://forum.ab4d.com/showthread.php?tid=4248 for the other question. |