The International Simutrans Forum

 

Author Topic: Ground objects distribution  (Read 14047 times)

0 Members and 1 Guest are viewing this topic.

Offline uci

  • *
  • Posts: 118
  • Without owner
  • Languages: EN, RO
Ground objects distribution
« on: April 10, 2018, 03:08:55 PM »
I noticed that ground objects are not scattered uniformly across the climate they belong to. For example, cacti in pak128 are always generated on the west side of desert climate. These objects have climates=desert.



The same happens with another ground object I play with, at the interface between alpine and arctic climate. This object has climates=tundra,rocky.




Could be a bug in the generation algorithm?

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5315
  • Languages: EN, NO
Re: Ground objects distribution
« Reply #1 on: April 10, 2018, 05:15:33 PM »
Just looking at the images and knowing which way the coordinates run, it seems like the game fills in objects from west to east. It wanted to put the objects further east, but could not due to climate restriction. They are therefore built at the first possibility, as if spacing is done using a dithering-like algorithm, that accumulates regardless of climate.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4465
  • Languages: EN, DE, AT
Re: Ground objects distribution
« Reply #2 on: April 10, 2018, 09:26:23 PM »
This should be fixed in r8420

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5315
  • Languages: EN, NO
Re: Ground objects distribution
« Reply #3 on: April 11, 2018, 05:51:52 AM »
Looking at what Dwachs did, it seems I got it pretty right for the lower image, but I do not understand how the upper one came about. Were there no groundobjs defined for the tropical climate?

Offline uci

  • *
  • Posts: 118
  • Without owner
  • Languages: EN, RO
Re: Ground objects distribution
« Reply #4 on: April 16, 2018, 11:10:53 AM »
This should be fixed in r8420
Yes, indeed.