Yep, I did that with the plugin!
The way I did it was to connect the roads using the New Lane tool in all the ways that would make since in real life, then turn off the lines for all the intersecting lanes, leaving just the asphalt in the middle.
In the future, there will be a road marking portion of the plugin to assist with intersections.
I’ll make a quick tutorial for the process after I release the new line editor (tonight!)
You’re a lifesaver! Will we have the ability to adjust the sizes of the parts generated (width/height, not just length)?
Also, the UI doesn’t seem to flow. The check box looks like Material UI, but the other parts don’t. Do you plan to standardize the UI for a more cosmetic update?
As of right now, you can adjust the width of the road by resizing the node parts. I will add a setting in the future to adjust line width and road height.
As for UI, this is my first time making a plugin this in-depth, and the UI honestly wasn’t my main concern going into it, but a cosmetic update will definitely have to come before the 1.0 release. I would love to get more detailed feedback on the UI on Discord, as I honestly don’t know where to start on fixing the flow.
Ok. I haven’t had any issues with the change detection when testing so I’m not really sure what the issue is, but I’ll add an option to just render ever road.
I didn’t realize you needed to press the + icons on the node, before I was clicking “create node” twice but when I tried again with the UI it worked. Thanks for the help and keep making great plugins!
Just a little progress update for what I'm working on currently!
Many of the main concerns with my plugin were performance, and rightly so. Rendering roads using triangles can create a lot of parts if not done mindfully, so I'm working on optimizing the render process right now.
As of the most recent update, lanes are rendered separately, even when detected as part of the same “lane group” (lanes with neighboring starts and finish). Lanes are rendered by calculating two curves on either side of the lane, filling each side with its line pattern, then filling the remaining space in between with asphalt.
So far, by changing this render process slightly, I’ve been able to reduce part counts by as much as 60% for two lane roads without sacrificing appearance, and will hopefully be able to reduce it by as much as 70% for four lane roads!
I just finished rewriting the road render module so that lanes are now rendered as entire groups rather than individually. For anyone concerned about part counts, this reduced the diverging diamond game I posted early from a little over 70,000 parts to 15,000 parts with a 5 stud segment length.
I’ll push this update out tomorrow after I do a little more testing!
It will work occasionally but it most of the time will not render. I have no idea what is wrong. This might have to do with the render changes you are making.
Maybe you could explain how to make an intersection.
Did you accidentally delete the render folder from Workspace? It should be named “Roads”.
Sorry, I meant to add a check for this before every render in the last update!!