Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Road Junctions
#3
Hi I've been working on making a junction mesh at the intersecting splines but with too much success  Sad, it's tricky to say the least. 
What I've basically done is get all the points along the spline using InterpolateByDistance. Then for each point I  project another 2 points ( 90 degrees to the  left & right ) & these points make up part of the mesh. See below :
  As you can see the meshes just overlap each other at the moment which is not really ideal, what needs to happen where the meshes overlap they should not be drawn as seperate meshes but as one large intersection mesh & this is what I'm struggling with.  
Looking at the screenshot you could say that the outer points of spline 3 which are inside of spline 1  should not be part of any mesh (this can be determind by checking the distance of said points against some of the points on spline 1, if they are less than 0.5 of the road width then they are overlapping spline 1).

    I thought I'd share my work even though it's far from complete in case someone who's a lot cleverer than me might be able to suggest how we might achieve making this junction mesh.
BTW if anyone does know of any code that could do this I've be gratefull to hear about it. 





 [Image: 31GyaKW.jpg]
Reply


Messages In This Thread
Road Junctions - by Wanderfalke - 08-30-2019, 10:57 AM
RE: Road Junctions - by _Aka_ - 08-30-2019, 11:42 AM
RE: Road Junctions - by dazz777 - 10-18-2019, 10:39 AM
RE: Road Junctions - by _Aka_ - 10-20-2019, 02:26 PM
RE: Road Junctions - by dazz777 - 11-01-2019, 12:30 PM
RE: Road Junctions - by _Aka_ - 11-02-2019, 01:33 PM
RE: Road Junctions - by dazz777 - 11-07-2019, 02:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to create a road texture at runtime? artsung 1 4 01-30-2024, 09:30 AM
Last Post: _Aka_
  Multiple Splines and Generators Performantly for Road System drock 1 6 07-17-2023, 10:31 AM
Last Post: _Aka_
  How can I remove one segment of the road that I made by spline? Chanon 3 7 09-14-2022, 04:44 PM
Last Post: _Aka_
  Performance lag for Endless Road generation User2200 5 1,657 04-08-2021, 08:33 AM
Last Post: _Aka_

Forum Jump: