model scalar
#2
The order of transformations is important. If you first rotate the model and then scale it, then the rotated model will be scaled and this can stretch the model in a way that is not intended.

To apply multiple transformations first check that the center of the 3D model is at coordinates (0, 0, 0) - around this point the model will be rotated and from that point the scaling will be applied. This is also called a pivot point. If the pivot point is somewhere else, then you can first apply a translation to move the center to that point.

Then add scale transformations, after that add rotation and finally add a translation.

You can also use StandardTransfrom3D that comes with Ab3d.PowerToys and is not a transformation from WPF 3D objects model. This requires a different usage pattern - see the "Utilities / StadardTransform3D sample" for more information.
Andrej Benedik
  


Messages In This Thread
model scalar - by kreativasas - 07-26-2021, 08:00 PM
RE: model scalar - by abenedik - 07-27-2021, 08:25 AM
RE: model scalar - by kreativasas - 07-27-2021, 05:04 PM
RE: model scalar - by abenedik - 07-28-2021, 09:30 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)