The International Simutrans Forum

 

Author Topic: Offsets for road vehicles  (Read 3115 times)

0 Members and 1 Guest are viewing this topic.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17765
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Offsets for road vehicles
« on: April 20, 2013, 04:54:13 PM »
Is there a known set of offsets that will correctly align a road vehicle from graphics aligned as if for another sort of vehicle? I have set up Blender, using The Hood's version of Zeno's scripts with some modifications, to produce automatically aligned vehicles so that all that I need to do once they are exported from Blender is to combine them into a single image using ImageMasker/Render Post Processor and add the special colour background. This does not work for road vehicles, however, as they are on a different alignment. If there was a standardised/known set of offsets that could be applied to vehicles in the .dat files, however, this would make things much easier, and allow me to have automatically exported road vehicles, too. These would be for Pak128.Britain, so the tile size is 128x128, if that affects the offsets.

Offline The Hood

  • Devotee
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Offsets for road vehicles
« Reply #1 on: April 21, 2013, 11:44:01 AM »
I don't know of one, but don't forget things are complicated in pak128.Britain by the "drive on left".

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17765
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Offsets for road vehicles
« Reply #2 on: April 21, 2013, 12:24:36 PM »
Hmm - how does this affect the alignment?

Offline The Hood

  • Devotee
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Offsets for road vehicles
« Reply #3 on: April 21, 2013, 08:36:13 PM »
You have to do the alignment as if they drove on the right, then the game engine does some offsetting to convert to drive on left.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17765
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Offsets for road vehicles
« Reply #4 on: April 21, 2013, 10:04:13 PM »
Hmm, I see.