Streets & Road Vehicles
-
- Route Supervisor
- Posts: 432
- Joined: 27 Mar 2013 08:58
- Location: Strumien
- Contact:
Re: Streets & Road Vehicles
The thing is that you can't beat the math. You either have to get wasted space or make unrealistic appearing of roads.
That's simple square math: 1, 1.41 and halves of this values are not natural. The only good compromise I've found is the way SC4 does it.
That's simple square math: 1, 1.41 and halves of this values are not natural. The only good compromise I've found is the way SC4 does it.
Re: Streets & Road Vehicles
Changing the graphics...
... and creating the modules with the in-game-module-editor leads to this in-game view: As Loco has correctly stated, code changes were not necessary.
But since I dont want the cars to not-use the center line of the road I will adjust their positions. This needs some recoding, but the diagonal logistics nodes are only used for diagonal roads and tracks. Thus its totally acceptable to adjust their intra-tile-positions.
One problem left are diagonal single-lane roads - as well as single-lane tracks. They will have a small gap before other diagonal roads/tracks/etc. follow.
... so that diagonal lanes have a width of 1.06 and horizontal lanes a width of 1.00 ...... and creating the modules with the in-game-module-editor leads to this in-game view: As Loco has correctly stated, code changes were not necessary.
But since I dont want the cars to not-use the center line of the road I will adjust their positions. This needs some recoding, but the diagonal logistics nodes are only used for diagonal roads and tracks. Thus its totally acceptable to adjust their intra-tile-positions.
One problem left are diagonal single-lane roads - as well as single-lane tracks. They will have a small gap before other diagonal roads/tracks/etc. follow.
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!
Join the discussions here on tt-forums.net!
-
- Chairman
- Posts: 845
- Joined: 26 Nov 2005 16:21
- Location: Dresden (formerly Ruhr Area)
- Contact:
Re: Streets & Road Vehicles
That is almost true. With this new method, though, one reaches a road width of 1.5/2*sqrt(2) which equals as smallfly pointed out roughly 1.06. Seems close enough, doesn't it?lukasz1985 wrote:The thing is that you can't beat the math. You either have to get wasted space or make unrealistic appearing of roads.
That's simple square math: 1, 1.41 and halves of this values are not natural. The only good compromise I've found is the way SC4 does it.
@smallfly: how are the nodes placed, anyways? Maybe by allowing a pixel fine placing, you can avoid those last problems. And maybe you could code "internodes", meaning the path will run through these nodes, yet they don't define the end of the path.
Re: Streets & Road Vehicles
https://www.youtube.com/watch?v=_lSru4foyMoLocoMH wrote:@smallfly: how are the nodes placed, anyways?
But the "normal" player wont create own modules. The module editor is meant for fast module creation for people who want to build exceptional/missing modules.
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!
Join the discussions here on tt-forums.net!
-
- Chairman
- Posts: 845
- Joined: 26 Nov 2005 16:21
- Location: Dresden (formerly Ruhr Area)
- Contact:
Re: Streets & Road Vehicles
Nice! Good to see another video, thanks. I see the procedure now and realize the problem involved here. I'm sure, you'll work it out, though
Re: Streets & Road Vehicles
This is so awesome!!
I'm glad at least one of my ideas helped you design better looking 45 degree roads!
That module creator in the video looks fantastic, I can't wait to give it a try myself.
You rock smallfly
I'm glad at least one of my ideas helped you design better looking 45 degree roads!
That module creator in the video looks fantastic, I can't wait to give it a try myself.
You rock smallfly
Visit the Directory --> Loco-Dat-Directory
Re: Streets & Road Vehicles
looks nice - so maybe you couold show some more like how to add lanes and such?
-
- Route Supervisor
- Posts: 432
- Joined: 27 Mar 2013 08:58
- Location: Strumien
- Contact:
Re: Streets & Road Vehicles
No, it's always true, because in the end if you still going to place another pierce of road next to the other - you will get into the issue again.LocoMH wrote:That is almost true. With this new method, though, one reaches a road width of 1.5/2*sqrt(2) which equals as smallfly pointed out roughly 1.06. Seems close enough, doesn't it?lukasz1985 wrote:The thing is that you can't beat the math. You either have to get wasted space or make unrealistic appearing of roads.
That's simple square math: 1, 1.41 and halves of this values are not natural. The only good compromise I've found is the way SC4 does it.
@smallfly: how are the nodes placed, anyways? Maybe by allowing a pixel fine placing, you can avoid those last problems. And maybe you could code "internodes", meaning the path will run through these nodes, yet they don't define the end of the path.
-
- Chairman
- Posts: 845
- Joined: 26 Nov 2005 16:21
- Location: Dresden (formerly Ruhr Area)
- Contact:
Re: Streets & Road Vehicles
I don't get your point. The only time one wastes just a little bit of space is when using an odd number of lanes diagonally. Otherwise no waste, just a road width that is slightly higher than the one going horizontally/vertically.
-
- Route Supervisor
- Posts: 432
- Joined: 27 Mar 2013 08:58
- Location: Strumien
- Contact:
Re: Streets & Road Vehicles
Do yourself a favor and try to place a single lane in a diagonal angle.
Then try to place annother one.
Then repeat this 10 times.
Even if you write an algorithm that alignes each lane - then you end with something that you didn't actually wanted.
Even writing such an algorithm is probably a lot of pain (even if only possible for an average experienced programmer) and possible not worth it at all.
Then try to place annother one.
Then repeat this 10 times.
Even if you write an algorithm that alignes each lane - then you end with something that you didn't actually wanted.
Even writing such an algorithm is probably a lot of pain (even if only possible for an average experienced programmer) and possible not worth it at all.
Last edited by lukasz1985 on 02 Apr 2014 09:59, edited 1 time in total.
-
- Chairman
- Posts: 845
- Joined: 26 Nov 2005 16:21
- Location: Dresden (formerly Ruhr Area)
- Contact:
Re: Streets & Road Vehicles
And that's why for an even number of lanes, the 1.5/2*sqrt(2) are the lane widths. Thus two lanes together use exactly 1.5 diagonal pieces. Just as pictured on this and the last page. So really, your problems mentioned are not there - at least not the amount you're talking about.
-
- Route Supervisor
- Posts: 432
- Joined: 27 Mar 2013 08:58
- Location: Strumien
- Contact:
-
- Chairman
- Posts: 845
- Joined: 26 Nov 2005 16:21
- Location: Dresden (formerly Ruhr Area)
- Contact:
Re: Streets & Road Vehicles
You were the one saying that a four lane road is its own module compared to two two lane road modules. So this is no problem, following your argumentation. Also, this is just graphical, nothing involving coding.
-
- Route Supervisor
- Posts: 432
- Joined: 27 Mar 2013 08:58
- Location: Strumien
- Contact:
Re: Streets & Road Vehicles
So now make 5 lane roads and hopefully you will get the idea what I'm talking about.
These modules are not intended to be lied in parallel so it's irrelevant if you miss the space.
Because every module is supposed to have it's own space, and like in reality - there is no point to lie down two parallel highways, instead - rebuild the existing by adding another n rows to it, but that is a completely different module
These modules are not intended to be lied in parallel so it's irrelevant if you miss the space.
Because every module is supposed to have it's own space, and like in reality - there is no point to lie down two parallel highways, instead - rebuild the existing by adding another n rows to it, but that is a completely different module
Re: Streets & Road Vehicles
May I support you with a corresponding in-game screenshot. And yeah. There is space. But thats absolutely realistic. Two curves with same radius always have a gap. And I think it looks quite nice, dont you?lukasz1985 wrote:And there is this problem still left:
And to be honest, the shown curve cannot be placed like that at the moment. How close a module can be built to another one is defined by the blocked areas (red) and the unblocked areas (green) of a module. Since there are only very simple unblockers available you cannot unblock a curved module pixel by pixel.
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!
Join the discussions here on tt-forums.net!
Re: Streets & Road Vehicles
The reason why its red (saying: cannot be build here) are the unblockers. Compare the red and green areas in module editor on this screenshot.lukasz1985 wrote:So now make 5 lane roads and hopefully you will get the idea what I'm talking about.
These modules are not intended to be lied in parallel so it's irrelevant if you miss the space.
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!
Join the discussions here on tt-forums.net!
Re: Streets & Road Vehicles
ah that's sense - so that's good to know
-
- Chairman
- Posts: 845
- Joined: 26 Nov 2005 16:21
- Location: Dresden (formerly Ruhr Area)
- Contact:
Re: Streets & Road Vehicles
That's why there should only be modules with an even number of lanes! If you want an odd number, just build 2 lanes + 1 lane. It will have a gap, but it's the easiest and most useful solution, in my opinion.
Re: Streets & Road Vehicles
See the 3-lanes modules above? It consists of a 2-lane and a 1-lane module. So there doesnt have to be gap in every case. After implementing the new diagonal nodes needed for centering the diagonal paths I will upload a video showing all corresponding aspects of our discussion.LocoMH wrote:That's why there should only be modules with an even number of lanes! If you want an odd number, just build 2 lanes + 1 lane. It will have a gap, but it's the easiest and most useful solution, in my opinion.
www.p1sim.org - P1SIM - Traffic, Logistics, City-Building & more
Join the discussions here on tt-forums.net!
Join the discussions here on tt-forums.net!
-
- Chairman
- Posts: 845
- Joined: 26 Nov 2005 16:21
- Location: Dresden (formerly Ruhr Area)
- Contact:
Re: Streets & Road Vehicles
Alright, sounds good. I get the point - however, if you rotate those modules by 180 degrees, they're different. That could be a downside.
Who is online
Users browsing this forum: No registered users and 3 guests