Smooth curve tracks

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
Jouster
Engineer
Engineer
Posts: 7
Joined: 27 Sep 2004 11:20

Smooth curve tracks

Post by Jouster »

Is there a way to implement curving tracks similar to those in locomotion?
While it may not be possible to have different degrees of curves (as in locomotion), there may be a way to automatically add a proper graphic based on the angle on which the track is joined to the straight one. Still, if its not possible to have 'free' curves, is there a way to have 'nice' switches with such curve?

I'm very impressed with OpenTTD so far - great work guys! :)
Please consider adding the curving tracks.

TIA.
Rexxie
Engineer
Engineer
Posts: 109
Joined: 07 Jan 2004 18:37
Location: Norway
Contact:

Post by Rexxie »

That would require a ton of new sprites, so I heeeighly doubt that will be implemented.
- Rexxie
Sanity is a full time job.
Jouster
Engineer
Engineer
Posts: 7
Joined: 27 Sep 2004 11:20

Post by Jouster »

Well... not quite a 'ton', but about 16 (but no more than 32). Here are some drawings I made - if I wasn't such 'all thumbs graphics artist' I would jump on it myself. What may be somewhat complex would be programming an automatic replacement of the sprites. You'd still use the original rail build menus.

Comments? Ideas? Please.

TIA.
Attachments
curve.png
curve.png (48.13 KiB) Viewed 4500 times
sprites.PNG
sprites.PNG (1.48 KiB) Viewed 4500 times
ConductorBob
Director
Director
Posts: 560
Joined: 21 Jun 2004 16:17
Location: Train station 1

Post by ConductorBob »

Actually this would add a ton more realism, me thinks. It actually looks nice in those pics. But then you do have to redraw a bit.
User avatar
Magic_Pixel
Engineer
Engineer
Posts: 80
Joined: 29 Jul 2004 07:56
Location: Tulcea/Bucharest, Romania
Contact:

Post by Magic_Pixel »

Yeah, that curvy track looks nice, _BUT_ don't forget that the same image is used when building a rail from top to bottom and you wouldn't want to see a "snake" instead of a straight line.

Besides, the trains will have the same angle in movement even if the track is curvy.

So I guess there is no solution to this problem with the current graphics and engine... 8)
...maintainer of Romanian OpenTTD translation...
User avatar
Celestar
Director
Director
Posts: 574
Joined: 02 Jul 2004 10:56
Contact:

Post by Celestar »

While I can imagine coding curved tracks for OTTD, it's still pretty far away, maybe something for 0.6.0 or the like ...


Celestar
User avatar
habell
Transport Coordinator
Transport Coordinator
Posts: 374
Joined: 04 Mar 2004 12:47
Location: Veenendaal, The Netherlands

Post by habell »

I hope it never get 'fixed' that's the reasen why I don't like Locomotion. It 'invents' it's own curves. I think this brings down the freedom of the builder. (maybe it will be an option)

Futhermore it would mean you'd need more angles of a sprite in stead of 8, you'd need about 16 or even more.
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

habell wrote:I hope it never get 'fixed' that's the reasen why I don't like Locomotion. It 'invents' it's own curves. I think this brings down the freedom of the builder. (maybe it will be an option)

Futhermore it would mean you'd need more angles of a sprite in stead of 8, you'd need about 16 or even more.
that's not true, you don't need 16 angles. it will just look butt ugly with less.
User avatar
Pilatus
Engineer
Engineer
Posts: 54
Joined: 02 Dec 2003 14:17
Location: Hjo, Sweden
Contact:

Post by Pilatus »

Is it not posible to make it like a vector curv?
I dont know how it is in loco...
If no end are at hand try your feet...
User avatar
Gorre
Transport Coordinator
Transport Coordinator
Posts: 322
Joined: 03 Jan 2004 10:28
Location: Somewhere over the rainbow
Contact:

Post by Gorre »

Rexxie wrote:That would require a ton of new sprites, so I heeeighly doubt that will be implemented.
Yes, you' re right, we'll need not only surface graphich but also many new trains, cars... graphics to see them for different angles.

I think, there are many more important things, so this is a pretty dream (not my)
Jouster
Engineer
Engineer
Posts: 7
Joined: 27 Sep 2004 11:20

Post by Jouster »

GORR3: You don't need new carriage angle graphics, train would still use the 90/45 car positions.

habell: I could probably be, like many options that one is able to turn ON/OFF in OpenTTD. This whole 'auto-replacement' could be an object that can be disabled in options, but I'll leave this to better brains than mine :)

Celestar: I will be patient, I promise :wink:

Magic_Pixel: You are right, in order to avoid the 'zig-zag' we would need 8 more sprites to compensate for the 45 degrees on some switches.

I have updated the sprites drawing to show the total of 24 'auto-sprites' that will be needed to compensate for all possibilities.

Thank you all for your feedback.
Attachments
sprites1.png
sprites1.png (2.39 KiB) Viewed 4322 times
User avatar
habell
Transport Coordinator
Transport Coordinator
Posts: 374
Joined: 04 Mar 2004 12:47
Location: Veenendaal, The Netherlands

Post by habell »

Korenn wrote:
habell wrote:I hope it never get 'fixed' that's the reasen why I don't like Locomotion. It 'invents' it's own curves. I think this brings down the freedom of the builder. (maybe it will be an option)

Futhermore it would mean you'd need more angles of a sprite in stead of 8, you'd need about 16 or even more.
that's not true, you don't need 16 angles. it will just look butt ugly with less.
That's my point :roll:
Costas
Engineer
Engineer
Posts: 105
Joined: 31 Mar 2006 17:03

Post by Costas »

trying to revive an old thread instead of making new post...

... will this be implemented at all? (and i dont care if the train graphics dont move according to the curve like they do in locomotion, as long as the track looks nice!)
Vorn
Engineer
Engineer
Posts: 32
Joined: 27 Feb 2006 12:35

Post by Vorn »

To make sections that are currently straight continue to look straight, you need 64 * 4 + 4 = 260 individual sprite pieces for flat ground, dividing the ground into a small central square and four trapezoidal chunks. Then there's dozens more for slopes.

Yes, I did the math once.

Vorn
User avatar
prissi
Chief Executive
Chief Executive
Posts: 648
Joined: 15 Nov 2004 19:46
Location: Berlin, Germany
Contact:

Post by prissi »

To distinguish curved track from diagonal ones is not so very hard. You can see this in Simutrans, you will just need four curve images. But it looks not so good. Imho, the cars are straight, thus the tracks should be straight too.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 8 guests