Patch #2860

Shorter standard length, added templates

Added by oberhuemer over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:2011-07-15
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

I was going to make turning faster too, but I think that wouldn't look good unless the amount of turning stages is reduced. I'll experiment with that a bit too; the templates are already prepared to fit. They are also rearranged, with the code adapted.

templates_and_vehicle_length.diff Magnifier (5.71 KB) oberhuemer, 2011-07-15 21:43

template.png (6.01 KB) oberhuemer, 2011-07-15 21:43

template_long.PNG (3.65 KB) oberhuemer, 2011-07-15 21:43

cets.grf (9.95 KB) oberhuemer, 2011-07-16 22:22

cets.zip (81.6 KB) oberhuemer, 2011-07-17 16:03

History

#1 Updated by Eddi over 8 years ago

like i said previously, i couldn't get the alignment to fit properly with the 22.5° views, so i only took the 15° views for the test GRF. i'd rather keep it that way.

anyway, the images you picked miss a few blue lines at the top of each sprite, to allow for certain larger wagons like double deckers to be drawn.

i suggest the following templates, for testing purposes:
"standard" templates for:
  • 4lu [e.g. tenders]
  • 6lu [e.g. small freight wagons]
  • 8lu [e.g. larger freight wagons and some early passenger wagons]
  • 10lu [e.g. some electric engines]
  • 12lu [e.g. pre-war passenger wagons]
  • 16lu [e.g. post-war passenger wagons]

and matching "shortened" (in - view) templates. so we could try whether that could even work out.

there's still lots to do in the code before we can start using real graphics anyway.

#2 Updated by oberhuemer over 8 years ago

Eddi wrote:

like i said previously, i couldn't get the alignment to fit properly with the 22.5° views

Just wanted to see if I could, it must work somehow (pointing to the xUSSR set).

Shortening everything only in the horizontal view will look horrible (gaps of at least 4 and up to 16 pixels with the lengths you suggested). But I suppose we could give it a spin anyway... I still prefer deviating from scale in the diagonal views.

As for the templates: I'll push them as soon as I have all lengths finished.

#3 Updated by oberhuemer over 8 years ago

  • File cets.grf added

I managed to get 22.5 degrees to work, but only with a length of 48 pixels in horizontal. Here's a test GRF so you can see how it looks.

#4 Updated by Eddi over 8 years ago

that crashes openttd when i try to build the engine.

#5 Updated by oberhuemer over 8 years ago

  • File deleted (cets.grf)

#6 Updated by oberhuemer over 8 years ago

I forgot to remove something, it worked for me in r22273 (old, I know...) though.

#7 Updated by oberhuemer over 8 years ago

And just by the way, I won't be available for two weeks starting tomorrow.

#8 Updated by oberhuemer over 8 years ago

Here's the code.

#9 Updated by oberhuemer over 8 years ago

  • Status changed from New to Closed

Actually, forget about it. Two intermediate steps will always look much better, I agree that the extra sprite work is worth it here. I'll post the templates in their own ticket.

Also available in: Atom PDF