Author Topic: Scaling 3D models to relative size  (Read 495 times)

Offline JohnnyB

  • Mc. Print
  • *
  • Posts: 33
    • View Profile
Scaling 3D models to relative size
« on: 2019-Jul-20 »
Is there a way to scale models to a size of let's say 1x1. X_SCALING apparently only scales from the original size, it seems?

Offline SnooPI

  • Dr. Type
  • ****
  • Posts: 343
    • View Profile
Re: Scaling 3D models to relative size
« Reply #1 on: 2019-Jul-21 »
Yes, it's from the original size.

You must scan all the vertices, take the highest value, and use it as the scaling value.

For example, your highest value (x, y, or z) is 250:
Your scaling value = 1/250 = 0.004

X_SCALING 0.004, 0.004, 0.004 

Offline JohnnyB

  • Mc. Print
  • *
  • Posts: 33
    • View Profile
Re: Scaling 3D models to relative size
« Reply #2 on: 2019-Jul-22 »
Thx, great.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2671
    • View Profile
Re: Scaling 3D models to relative size
« Reply #3 on: 2019-Jul-22 »
As long as you don't have tonnes of models, it's usually easier to load the models into your model editor and scale it there.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)