Scale

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 844
Joined: 24 Oct 2018, 13:41
Plugins: Showcase Store

Plugin Creator

Platform

Scale

#1

Post by Imran M »

One thing that you really need to use is scale. Sometimes it's not too important, but you might need to use scale to make a real thing's height in the game. Well, I have a solution to that! The following formula should help, it's pixels divided a theo human (3 pixels), times by your scale. The scale is how big a theo human is, which is 3 pixels. For most people they use 2m, so 3 pixels = 2 meters. I, however, use 1.8 meters since 2 meters is way too tall for me. This would be a simplified version of the formula. Bear in mind s = scale, p = amount of pixels.
pixil-frame-0.png
pixil-frame-0.png (357 Bytes) Viewed 2565 times

For meters in real life to pixels, you have to do pixels times by a theo human (3 pixels) divided by your scale. Here is the simplified formula.
pixil-frame-0 (1).png
pixil-frame-0 (1).png (337 Bytes) Viewed 2565 times

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Scale

#2

Post by Lobby »

Thank you for the explanation :bc

So by scale you reference to the considered real-life height of a human.

To put it differently:
\(h_{real}=\frac{p}{3}\cdot s\)

\(p=3\cdot \frac{h_{real}}{s}\)

User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 844
Joined: 24 Oct 2018, 13:41
Plugins: Showcase Store

Plugin Creator

Platform

Re: Scale

#3

Post by Imran M »

<..>
I knew I was missing something! It was what it equals to!

User avatar
wetguy
Inhabitant of a Megalopolis
Reactions:
Posts: 738
Joined: 25 Nov 2017, 06:10
Location: United States of America
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Scale

#4

Post by wetguy »

Not all things in theotown are to scale with eachother though. For example, the ships and airbus a340s and a380s (theoair t340s and t380s) are smaller than they "would" be, and cars are bigger than they "would" be. I think this is due to the limitations of the game.

User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 844
Joined: 24 Oct 2018, 13:41
Plugins: Showcase Store

Plugin Creator

Platform

Re: Scale

#5

Post by Imran M »

wetguy wrote:
15 Feb 2019, 21:14
Not all things in theotown are to scale with eachother though. For example, the ships and airbus a340s and a380s (theoair t340s and t380s) are smaller than they "would" be, and cars are bigger than they "would" be. I think this is due to the limitations of the game.
Yes that is true, due to the fact that theotown uses pixels unlike other building simulators. So, I think we should classify this tutorial for buildings mostly.

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”