Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
*NEW*
Current Version on
STEAM
:
16.026
Logfile:
EN
,
DE
Webchat:
Visit the chat
Home
Help
Search
Login
Register
GLBasic forum
»
Main forum
»
GLBasic - en
»
Scaling 3D models to relative size
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Scaling 3D models to relative size (Read 1212 times)
JohnnyB
Mc. Print
Posts: 41
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?
Logged
SnooPI
Dr. Type
Posts: 421
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
Logged
JohnnyB
Mc. Print
Posts: 41
Re: Scaling 3D models to relative size
«
Reply #2 on:
2019-Jul-22 »
Thx, great.
Logged
bigsofty
Community Developer
Prof. Inline
Posts: 2792
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.
Logged
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)
Print
Pages: [
1
]
Go Up
« previous
next »
GLBasic forum
»
Main forum
»
GLBasic - en
»
Scaling 3D models to relative size