Round vs. quadratic

Post all other topics which do not belong to any other category.
Post Reply
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Round vs. quadratic

Post by ssilk »

Factorio uses for everything quadrats. (The gun turrets are ar mistake, the are 1x2 :) ).
Simcity 4 for example made it a bit different, a diameter of 3 is quadratic, but 4 is looking so:

Code: Select all

 **
****
****
 **
And so on for 5 etc. the bigger the diameter, the more realistic circles are drawed.
On the other hand we are used to it and it makes calculations much easier (for programmers, for the program, for us, the players).
I just want to discuss that...
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

RawCode
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Wed Jun 12, 2013 12:48 pm
Contact:

Re: Round vs. quadratic

Post by RawCode »

this will be source of pathfind issues and building overcomplication...

all objects shoud be as simple shape as possible.

wrtlprnft
Fast Inserter
Fast Inserter
Posts: 155
Joined: Thu Feb 21, 2013 8:49 pm
Contact:

Re: Round vs. quadratic

Post by wrtlprnft »

There aren't that many buildings >3×3, with the only notable exception being solar panels. Assuming that they generate power proportional to the area they occupy, they would only be a bit more annoying to put down, with no real other consequences.

For assemblers/furnaces, a nonrectangular shape would be bad, because that means less space for inserters…

Coolthulhu
Fast Inserter
Fast Inserter
Posts: 201
Joined: Thu Apr 04, 2013 9:55 am
Contact:

Re: Round vs. quadratic

Post by Coolthulhu »

Currently steam engines are not perfectly rectangular. It makes them a prime targets for creepers, who love to get stuck in them, get mad and destroy stuff.
Most structures are kinda small. The only reasonable pseudo-circular shape I can imagine being useful is 4x4 without corners. Long assembly chains with only few resources (inserter -> smart inserter) would look similar to how they look now.

Currently only wires, weapons, creepers, player and logistic bots use euclidean ("circular") metric. Everything else uses squares and Chebyshev metric (total distance is sum of x and y distances). Circular buildings would look out of place.
For it to look "natural" we'd need 8-side rotations, which would be a cool feature but would require quite a bit of redesigning. 8-direction inserters (especially the long ones), belts, circular electric supply range etc. Good for an eventual long-term goal, though.

EDIT: Got wrong metric, correcting.
Last edited by Coolthulhu on Thu Sep 26, 2013 9:35 pm, edited 1 time in total.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Round vs. quadratic

Post by ssilk »

Uh. I don't meant buildings. Made wrong examples. sorry. I mean for example the radius of the radar and the delivery radius of poles. Did I forget something? When I think now over it, I meant only that, because - as C. said, wires, weapons, creepers, player and logistic already uses Euclidean metrics.
For buildings: well, I think an assembly which has one edge free (3x3, but only 8 fields used, one edge is empty) could be an interesting new element.

I never had that problem with steam engines. I recommend to built a wall around that, because creepers tend to destroy something, when they have no place to move.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Round vs. quadratic

Post by ficolas »

maybe making them round will make a factory quite harder to make, but it is more realistic tho.
With it beeing round you would need to use more posts, or let some areas unpowered.

Goddohando
Inserter
Inserter
Posts: 34
Joined: Wed Sep 25, 2013 7:47 am
Contact:

Re: Round vs. quadratic

Post by Goddohando »

I prefer it as it is. Better for my OCD :)

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Round vs. quadratic

Post by kovarex »

Goddohando wrote:I prefer it as it is. Better for my OCD :)
That is my perception as well :)

Holy-Fire
Fast Inserter
Fast Inserter
Posts: 169
Joined: Sun Apr 14, 2013 9:15 am
Contact:

Re: Round vs. quadratic

Post by Holy-Fire »

Coolthulhu wrote:Everything else uses squares and taxicab metric (total distance is sum of x and y distances).
It's not Taxicab metric. It's the Chebyshev metric (Total distance is maximum of x and y distances).

zlosynus
Global Moderator
Global Moderator
Posts: 114
Joined: Sat Feb 09, 2013 2:17 am
Contact:

Re: Round vs. quadratic

Post by zlosynus »

Holy-Fire wrote:
Coolthulhu wrote:Everything else uses squares and taxicab metric (total distance is sum of x and y distances).
It's not Taxicab metric. It's the Chebyshev metric (Total distance is maximum of x and y distances).
OT: I believe mathematicians call these Manhatten and Maximum metrics/norms (or alternatively L_1 and L_infinity).

Holy-Fire
Fast Inserter
Fast Inserter
Posts: 169
Joined: Sun Apr 14, 2013 9:15 am
Contact:

Re: Round vs. quadratic

Post by Holy-Fire »

zlosynus wrote:
Holy-Fire wrote:
Coolthulhu wrote:Everything else uses squares and taxicab metric (total distance is sum of x and y distances).
It's not Taxicab metric. It's the Chebyshev metric (Total distance is maximum of x and y distances).
OT: I believe mathematicians call these Manhatten and Maximum metrics/norms (or alternatively L_1 and L_infinity).
Those are also valid names (and in fact are mentioned in the linked Wikipedia pages).

LoSboccacc
Filter Inserter
Filter Inserter
Posts: 251
Joined: Wed Feb 20, 2013 9:35 pm
Contact:

Re: Round vs. quadratic

Post by LoSboccacc »

Octagonal range is quite fast as well. Then there is the distance with the quake square root which works by magic and is quite fast.

Coolthulhu
Fast Inserter
Fast Inserter
Posts: 201
Joined: Thu Apr 04, 2013 9:55 am
Contact:

Re: Round vs. quadratic

Post by Coolthulhu »

LoSboccacc wrote:Octagonal range is quite fast as well. Then there is the distance with the quake square root which works by magic and is quite fast.
There's a simple trick that makes circular range almost as fast - compare squared distances instead of roots.
Square roots are only needed when you need the precise magnitude of an effect, such as when shading pixels.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Round vs. quadratic

Post by kovarex »

Coolthulhu wrote:
LoSboccacc wrote:Octagonal range is quite fast as well. Then there is the distance with the quake square root which works by magic and is quite fast.
There's a simple trick that makes circular range almost as fast - compare squared distances instead of roots.
Square roots are only needed when you need the precise magnitude of an effect, such as when shading pixels.
We do it, ofcourse, some of the distances are actually already stored as squared :)

Post Reply

Return to “General discussion”