TMPE: lane connector should hide tracks that are not connected
Depends on #782

Setting max turn angle is one way of disconnecting sharp tracks. But it limited to disconnecting by angles. More customizable way of doing this is using lane connector.
To do this we need to patch NetNode.RenderNode() NetNode.PupulateGroupData() and NetNode.CalculateGroupData() . specially around the check flags code.
Use the same version of Harmony as Hide TMPE crosswalks and NS2 to be compatible with those mods. (boformer told me NS2 is buggy and different versions of NS2 don’t work with each other 😦 )
EDIT:
Tasks:
- Create a small test mod for fast testing.
- Write code to check if two tracks should draw connect texture/mesh
ShouldDrawConnectTexture(). - import TranspilerUtil code from RM Crosswalks Mod
- Insert
ShouldDrawConnectTexture()in every place where there is a check for direct connect insideNetNode.RenderNode()to support close camera. - Test/Debug
- Optimise: create array/cache to store whether tracks are connected so that it does not have to recalculate every frame.
- harmony: Fix harmony compatibility with NS2. (I think its NS2 that needs to change it harmony)
PLAN: see https://github.com/CitiesSkylinesMods/TMPE/issues/734#issuecomment-590807175
This task needs to be divided into several steps:
- exclude unconnected direct train connections one a per segment basis
- exclude unconnected direct train connections one a per direction basis
- support lod (die hards can use ULOD mod can be used until this is supported). PS: lane connector should post UpdateNode()
- exclude unconnected direct train connections on a per lane basis for custom assets that have more than one pair of tracks.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 37 (13 by maintainers)
Progress!
that’s freaking awesome!
I created the meshes for left and right track by loading the track in blender and deleting the virtexes for left or right.
Left and right track.zip
Hopefully it will work as it is 😃
EDIT: I have not got around doing the mesh for wires yet. but I need to do that at some point. EDIT2: IN any case even without this mesh I can do some stuff with train station tracks with the one way and two way meshes I already have.