Posts: 49
Threads: 15
Joined: Feb 2021
Reputation:
0
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
Posts: 781
Threads: 15
Joined: Sep 2009
Reputation:
59
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
Posts: 49
Threads: 15
Joined: Feb 2021
Reputation:
0
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