Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate between road, tracked, pedestrian, etc on lane connector #295

Open
originalfoo opened this issue Apr 21, 2019 · 11 comments
Open
Assignees
Labels
enhancement Improve existing feature LANE ROUTING Feature: Lane arrows / connectors Overlays Overlays, data vis, etc. UI User interface updates Usability Make mod easier to use

Comments

@originalfoo
Copy link
Member

originalfoo commented Apr 21, 2019

Would it be possible to change source node shape for monorail tracks?

Currently they use circles, like road lanes. I initially thought there was a routable lane on the median (as I'd never even tried routing monorails before) or something.

Maybe if the monorail source nodes were square or rectangular? I realise this would add some complexity in terms of orientation (ensure square/rectangle is aligned with lane) but I think it would give a much more intuitive interface to the end-user.

Tagging: #282

EDIT: there are two cases:
Mixed case: Some assets use the same lane for both car/tram like the vanilla two way road with tram tracks.
mixed

Separate Case: Some other custom assets have tram lane and bus/car lane on the top of each other.
separate

@krzychu124
Copy link
Member

If I manage to create that first shader I mentioned in #282 I could create other shapes like pentagon, hexagon etc... It's pure math problem written in Cg

@originalfoo
Copy link
Member Author

If it's any use there are some shader tutorials here: https://catlikecoding.com/unity/tutorials/

@krzychu124
Copy link
Member

Yeah I know that site 😉

@originalfoo originalfoo added enhancement Improve existing feature UI User interface updates Usability Make mod easier to use labels Apr 21, 2019
@krzychu124
Copy link
Member

In addition, maybe we should add some sort of switch for cycling through lane connection modes - (preview or manage connections):

Available views/states:

  • road vehicles,
  • rail vehicles,
  • both

@originalfoo
Copy link
Member Author

Yup - dependent on discussion starting at #38 (comment) (ie. where to show context-specific tool modes/options)

@originalfoo originalfoo added LANE ROUTING Feature: Lane arrows / connectors Overlays Overlays, data vis, etc. labels Aug 12, 2019
@originalfoo originalfoo changed the title Lane connector: Different source node shape for monorail Differentiate between road, tracked, pedestrian, etc on lane connector Aug 13, 2019
@kianzarrin kianzarrin added this to the Road vs. Track distinction milestone Feb 16, 2020
@kianzarrin
Copy link
Collaborator

Mixed case: Some assets use the same lane for both car/tram like the vanilla two way road with tram tracks.
mixed

Separate Case: Some other custom assets have tram lane and bus/car lane on the top of each other.
separate

Shapes: #354

  • cars lane: Circle
  • trams/monorail lanes: rectangle
  • tram on top of car lane: rectangle on top of circle? triangle?
  • mixed tram/car lane: rectangle on top of circle? triangle?
  • bus lane : bundle it with car lane, give it different shape?
  • monorail on top of tram lane( see Monorail node circles are projected on the road under #654) : this is theoretically possible. Its and edge case that may be visually annoying but does not prevent the user from selecting monorail and tram/car under separately.

User control:

  • ALT to switch to track mode?
  • hotkey (eg: CTRL+M) to switch between modes:
    option 1: mixed, car | mono/tram track (only if there are monorail or tram tracks)
    option 2: mixed | car | tram | monorail | bus. (skip mode if unavailable on the selected node)

back-end:
its pretty easy to know what to do in the case when tram and bus/car lane are separated.
What should we do if tram and car lane is mixed?

In many places cars can enter bus lane only if they want to turn. should we have possibility for bus to go straight but car to turn in lane connector?

@originalfoo
Copy link
Member Author

Separating bus and car lane would be bad idea having given it some thought. To user, it's just "a bus lane".

The distinction is really about "something that has tires (car, bus, truck...)" vs. "someting that runs on tracks (tram, monorail, train...)".

Note: there are some crazy assets with things like metro track or rail track within a road.

I think maybe either Ctrl or Alt to toggle between road vs. tracks mode. (Obviously on road only prefab it would have no effect. Likewise, on track only prefab, it would have no effect.)

Then that leaves the issue that there could be more than one track in the same "position", for example a monorail track over a tram track. I'm not sure what to do about that situation without making everything really confusing. The lane connectors could perhaps be placed side by side, but even then how would we highlight the specific track they relate to?

@kianzarrin
Copy link
Collaborator

@aubergine10 Are we going to make it impossible to let cars use bus lane to turn? I know this question is opening up a whole new can of worms and leads to complexity and results into many combinations of possibilities so we need to be careful about how we go through with this. maybe have it on your mind and we can come back to this in future?

I opened issue #716

@kvakvs
Copy link
Collaborator

kvakvs commented Feb 19, 2020

If all tools are soon going to have their floating tool window, you can plan here what will that window contain?

  • Keyboard shortcuts help? (Delete hint)
  • Stay in lane button with Ctrl+S hint
  • A row of switches for traffic types?
    Do not bother with actual layout or sprites, just the controls that will be there.

@originalfoo
Copy link
Member Author

Are we going to make it impossible to let cars use bus lane to turn?

No, of course not.

To the user, a bus lane is just a road lane that's painted red. If they want to keep cars and trucks off that lane, they enable the 'ban cars and trucks from bus lanes' option (or whatver it is called) in mod options.

We would never have per-vehicle-category lane connectors on road lanes.

The distiction here is only about tracked vehicles (trains, trams, etc) vs. tire vehicles (cars, trucks, etc).

Bus lane = it is just a normal road lane from perspective of the lane connector tool.

@originalfoo
Copy link
Member Author

Suggestion:

  • We have a shortcut (whatever it is) to toggle between "road mode" and "track mode"
  • We worry about the issue of "tracks above tracks" as a separate problem some time in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve existing feature LANE ROUTING Feature: Lane arrows / connectors Overlays Overlays, data vis, etc. UI User interface updates Usability Make mod easier to use
Projects
None yet
Development

No branches or pull requests

4 participants