Long vehicles v5. Planning

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply

Select code

Poll ended at 24 Jan 2009 17:51

2 parts
2
8%
1 part
4
17%
Combined (1+2)
14
58%
Front part code
3
13%
Other
1
4%
 
Total votes: 24

User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Long vehicles v5. Planning

Post by George »

With a year delay I'm starting LV5.
Because of the difference in CB 11 support between TTDP and OTTD for RVs, I had to select the platform for LV5. I selected OTTD because it allows to have more RVs types at once.

Now I have to decide the main question about Vehicle code - articulated vehicles code.

OTTD supposes the max size for a single RV part equal to half a square, while LVs are usually twice as large. So, I can provide one of the following solutions (I'd like to know - what one would users prefer):

1) Two parts code.
Pro:
Less problems with tunnels, slopes, bridges.
Contra:
Doubles amount of sprites, parts fit in TTD scale, but vehicles magically bend in curves, shift on hills.
T1.png
T1.png (5.69 KiB) Viewed 24815 times
2) Singe body code
Pro:
Normal amount of sprites, single body on hills and in curves.
Contra:
Glitches in tunnels and slopes.
T2.png
T2.png (5.99 KiB) Viewed 24814 times
3) Combined code
Pro:
Single body in curves, less problems with tunnels, slopes, bridges.
Contra:
Three more sprites, shift on hills.

4) Front part code
Pro:
Single body in curves
Contra:
11/8 more sprites, slope problem on curves after hills, jump on curves after hills, bridge overflow, tunnel overflow
Image

test GRF is here https://www.tt-forums.net/download/file.php?id=104453
Last edited by George on 16 Jan 2009 18:31, edited 6 times in total.
Image Image Image Image
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Long vehicles v5. Planning

Post by Gremnon »

I'd go for 3 myself, but failing that, I opt for 1 instead.
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Long vehicles v5. Planning

Post by George »

Gremnon wrote:I'd go for 3 myself, but failing that, I opt for 1 instead.
What was wrong with 3? See the GRF attached
Image Image Image Image
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Long vehicles v5. Planning

Post by Gremnon »

Ah, I didn't notice the grf... excuse me while I go look at that...
User avatar
Benny
Tycoon
Tycoon
Posts: 2185
Joined: 25 Aug 2007 17:03
Location: ~/

Re: Long vehicles v5. Planning

Post by Benny »

I'd go for 2, because I like the look of buses bending in curves. :)

Edit: wait.. That bus isnt supposed to bend, right?..
But anyways, what about making the 18 wheelers in 2 pieces?
Last edited by Benny on 10 Jan 2009 18:08, edited 1 time in total.
Image
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Long vehicles v5. Planning

Post by George »

A code for combined mode would be improved with today's nightly with support for var 45 for RVs
Image Image Image Image
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Long vehicles v5. Planning

Post by Gremnon »

Right, after a quick experiment with that test grf... I'm inclined to agree, the second of the three buses looked best to me, though all three had a bit of trouble with tunnels.... I'm using a different tunnel to the default one, the NA roads one, but I have no idea if that affects it.
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Long vehicles v5. Planning

Post by FooBar »

I think bus three from your test grf is best. In my test run, the all glitched equally at tunnels and I find it just silly to have a bus behave as if it were an articulated bus while it actually isn't an articulated bus at all. In other words: if it's in one piece in real life, it should be in one piece in the game :wink:
User avatar
SirXavius
Transport Coordinator
Transport Coordinator
Posts: 302
Joined: 28 Jun 2006 18:25
Location: Florida

Re: Long vehicles v5. Planning

Post by SirXavius »

I'm inclined to vote 3, but what limitations does more sprites mean? Longer wait while you code them all? Or less compatibility with other sets because of overwrites?

I enjoyed your LV set before, but when articulated vehicles came out, your semis looked out of place. I'm happy you found the time and impulse to articulate your excellent vehicles.

One other thing, being an American prude, "provocative" pictures look out of a place on our public roads. Keep that in mind!! :P :wink:
User avatar
CommanderZ
Tycoon
Tycoon
Posts: 1872
Joined: 07 Apr 2008 18:29
Location: Czech Republic
Contact:

Re: Long vehicles v5. Planning

Post by CommanderZ »

How will these variants behave in loading bays? I mean - will they require drive-through stops?
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Long vehicles v5. Planning

Post by George »

CommanderZ wrote:How will these variants behave in loading bays? I mean - will they require drive-through stops?
All of them will
Image Image Image Image
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Long vehicles v5. Planning

Post by George »

SirXavius wrote:I'm inclined to vote 3, but what limitations does more sprites mean? Longer wait while you code them all? Or less compatibility with other sets because of overwrites?
I suppose none serious limitations.
SirXavius wrote:I enjoyed your LV set before, but when articulated vehicles came out, your semis looked out of place. I'm happy you found the time and impulse to articulate your excellent vehicles.
One other thing, being an American prude, "provocative" pictures look out of a place on our public roads. Keep that in mind!! :P :wink:
LV5 would have a parameter to disable them.

P.S. Just tested r14977. Variant 3 works as intended
Image Image Image Image
User avatar
WLK
Engineer
Engineer
Posts: 31
Joined: 15 May 2005 13:47
Location: Slovakia
Contact:

Re: Long vehicles v5. Planning

Post by WLK »

I find it just silly to have a bus behave as if it were an articulated bus while it actually isn't an articulated bus at all. In other words: if it's in one piece in real life, it should be in one piece in the game
I tottaly agree with Foobar... and vote for 3
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: Long vehicles v5. Planning

Post by Zephyris »

It really is a balance of work for gain;
1. Bendy buses
Glitches: Corners (because of articulation), tunnels (because of height), slopes (vertical separation)
Effort: Double number of sprites, restricts gameplay to drive through stops only.
This probably adds more glitches than it removes, it looks very strange for a solid bus to bend in a corner and the tall height of the sprites will still give some tunnel glitches.
2. Solid buses
Glitches: Tunnels (length and height) and slopes (bounding box issues)
Effort: Minimal
3. Combo buses
Glitches: Tunnels (height) and slopes (vertical separation)
Effort: Triple number of sprites, restricts gameplay to drive through stops.

All in all for 2 you would be putting in quite a lot of effort to add glitches, or with 3 you would be putting in lots of effort make two glitches less noticeable but not eliminate them... I would rather you stick to something simple so we see the set sooner :)
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Long vehicles v5. Planning

Post by George »

I've made some research about hill code. As you can see, it is impossible to solve shift on the hills problem on slopes without huge amount of sprites (No, I do not want that much sprites).
T3.png
T3.png (5.89 KiB) Viewed 24072 times
So, I have to admit, that we'd get vertical shift on hills. What do you think about it?
Attachments
testw.grf
(53.23 KiB) Downloaded 377 times
Image Image Image Image
User avatar
Benny
Tycoon
Tycoon
Posts: 2185
Joined: 25 Aug 2007 17:03
Location: ~/

Re: Long vehicles v5. Planning

Post by Benny »

Wow, that is cool! I will use this grf separately even if you arent gonna make all your buses/trucks like that. (The middle one)
But what is the problem with too many sprites? That it is more work? That the grfs uses more space? Or that you cant have that many vehicles in the game?
Image
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Long vehicles v5. Planning

Post by George »

Bennythen00b wrote:Wow, that is cool! I will use this grf separately even if you arent gonna make all your buses/trucks like that. (The middle one)
But what is the problem with too many sprites? That it is more work? That the grfs uses more space? Or that you cant have that many vehicles in the game?
1) I need this to be coded - http://bugs.openttd.org/task/2521
2) the first and second pictures are the same code, but with and without slopes
Image Image Image Image
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Long vehicles v5. Planning

Post by George »

Tomorrow I'll start testing and writing code #4. I'm unhappy with all the solutions I have
Code 4 characteristics
Pro:
No problems with slopes, hills and in curves.
Contra:
Problems with tunnels and bridges
Image Image Image Image
User avatar
SirkoZ
Tycoon
Tycoon
Posts: 1518
Joined: 06 Mar 2004 23:51
Location: The sunny side of Alps

Re: Long vehicles v5. Planning

Post by SirkoZ »

I chose 1 part because busses can't just bend on the curves. If one wants to add extra long busses to O/TTD, there has to be support for it first or they look odd for sure at some locations or other.
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: Long vehicles v5. Planning

Post by DJ Nekkid »

that vertical shifting almost gave me an erection! ... were that a mock-up or a real screenie?
Member of the
ImageImage
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Bing [Bot] and 16 guests