Rotate Widget
#1
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 :(
Kevan Hampson
#2
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.
Andrej Benedik
#3
(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:
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.

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 ?
Kevan Hampson
#4
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 ?
Kevan Hampson
#5
See https://forum.ab4d.com/showthread.php?tid=4248 for the other question.
Andrej Benedik
  


Forum Jump:


Users browsing this thread:
1 Guest(s)