Search Unity

[2.3.1][Now open-sourced] Road Creator Pro

Discussion in 'Assets and Asset Store' started by MCrafterzz, Feb 11, 2020.

  1. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    This release focuses on bugs reported by various people in the community, thanks!

    V. 1.9.3:
    - Added support for exporting roads, intersections etc to prefabs. Click the Windows > Road Creator > Export As Prefab button
    - Added inbuilt support for Unity 2018.4
    - Modified default intersection LODs
    - Increased default intersection main road vertex count
    - Fixed lighting for roads and intersections being incorrect
     
  2. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    Last update focused on fixes, this one focuses on improvements

    V. 1.9.4:
    - Removed intersection connection indexes. Which part of a road which is connected to the main point of the intersection is now controlled by a property in a lane instead, this allows you to define the correct values in a road preset and then not think about it again rather than setting it up for every intersection.
    - Changed how road terrain deformation chooses amount of points to sample, this should increase the performance without creating artefacts, if it does you can always increase the terrain accuracy property
     
  3. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    Lots of good ideas from the community!

    V. 1.9.5:
    - Added option to make roads cyclic
    - Added option to configure start and end offset percentage for roads, prefab lines and terrain modification intervals regardless if whole road is enabled or not
    - Added simple controls foldout to the road and prefab line inspector
    - Added packages with HDRP and URP materials, open them and they'll replace the default materials. Everything works except prohibited areas as they use a custom shader
    - Terrain generation is now a seperate update button to prevent the terrain accidently being modified unintentionally
    - Prefab Line prefab's mesh can now be in a child object instead of always in the root
    - Fixed road presets not saving and loading prefab line's start and end offset percentage
    - Fixed being able to use central y deformation and fill gap for prefab lines at the same time even though they are not compatible

    V. 1.9.6:
    - Road guidelines are now visible before placing the first road point
    - Improved inspector for road and intersection terrain deformation to be more clear
    - Added intersection controls to road control foldout
    - Layers are now added automatically when creating your first road or prefab line, making the installation process easier
    - Intersections no longer show turn markings when only two roads are connected, as that doesn't really make sense
    - Rewrote the right click select menu, hopefully this fixes the issues people had with it
     
    Last edited: Mar 8, 2021
  4. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    V. 1.9.7:
    - Added shortcuts for creating roads and prefab lines to speed up creation process
    - Namespaced all files to prevent name conflicts with other assets
    - You can now left click select roads, intersections etc
    - Prevent an error when deleting a road connected to an intersection
    - Temporarly disabled the right click menu as it was causing some issues

    Right click menu is back, and better than ever!

    V. 1.9.8:
    - Added options to add lanes from curve, it lets you define a curve and then adds lanes from that data, this lets you quickly add more complex shapes
    - Redid the right click dialog, you can now configure if it should only be shown for road related objects and what it should show. The options are: None (disabled), Creation (shows buttons for creating roads and prefab lines), Selection (Shows the objects under the mouse for easy selection) and Both (combines creation and selection)
    - Inprovements to left click select, it now works the same for prefab lines and prohibited areas as it does for roads.
    - Added support for selecting multiple objects with CTRL + Left click (just like non-road object)

    V. 1.9.9:
    - Added option to modify terrain height, remove details and remove trees on update
    - Moved terrain modification to its own tab in the inspector as it has so many options now-a-days
    - Added option to make point positions handle scale when zoomed
    - Fixed a small issue with the scene view getting stuck in eye tool mode when right click menu doesn't open
    - Fixed loading a preset connected to an intersection causing an error

    V. 1.9.10:
    - Added option One Material Per Lane to add lanes from curve function, allowing you to choose one material per lane added
    - Made it possible to set lanes from curve, overriding all current lanes
     
    Last edited: Mar 16, 2021
  5. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    This release is a result of many hours spent speeding up terrain deformation for both roads and intersections.

    V. 1.10.0:
    - Totally redid terrain modification once again! This time to make it much quicker and prevent holes from generating
    - Added undo support to terrain modification, detail removal and tree removal
    - Added option to deform mesh to terrain as an alternative to terrain modification
    - Connection to a cyclic road now disables it's cyclic property automatically so that it generates an intersection
    - Fixed error caused by #endif statements being placed slighly wrong

    V. 1.10.1:
    - Fixed terrain modification not working when road is near the terrain edge

    V. 1.10.2:
    - Fixed deform mesh to terrain not working when road is beneath terrain
    - Added a bit of offset to deform mesh to terrain. For a good result you still need to create a smooth terrain
     
    Last edited: Mar 30, 2021
  6. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    V. 1.10.3:
    - Added Snap Points to terrain for roads and intersecting which snaps all anchor points to the underlying terrain or object
    - Added window to generate a texture of all roads and intersections above a terrain, this texture can be used to mask trees for example
    - Fixed an issue with deform mesh to terrain
     
  7. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    V. 1.10.4:
    - Inproved placement of points when adding/inserting points to prevent overlap
    - Fixed inserting points at the same location as existing points creating errors
    - Fixed reset road not removing LOD meshes

    V. 1.10.5:
    - Fixed errors when creating an intersection with a road that only has one lane

    V. 1.10.6:
    - Fixed an error when connecting one lane roads to intersections
     
    Last edited: Apr 22, 2021
  8. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    V. 1.10.7:
    - Some general improvements to the Save To Prefab button

    V. 1.10.8:
    - Added possiblity to convert an entire road system into a single mesh: Windows > Road Creator > Convert To Single Mesh

    V. 1.10.9:
    - Fixed Combine To Single Mesh combining all lod levels and not only the highest
     
    Last edited: Jun 14, 2021
  9. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    This is the largest update yet which changes how most of the tool works. The most important change is the new toolbar where you now create, insert and delete points etc instead of having loads of confusing keybinds that not even I remembered. Another huge change is that you can see and edit multiple roads at the same time to make it easier to create a system of roads. The full changelog is below:

    V. 2.0.0:
    - Added road system which is a parent for roads and intersections
    - You now control roads and intersections from a RoadSystem instead of an induvidual road, this allows for seeing and editing points from multiple roads at the same time. Left clicking on a road or intersection will show it's inspector.
    - Added a toolbar window where you choose which action to apply, this allows for much better visual feedback for example you only see the relevant points when connecting to an intersection. The buttons are:
    - Create intersection
    - Connect to intersection
    - Disconnect from intersection
    - Create road
    - Add points
    - Remove points
    - Insert points
    - Split

    And the following toggles:
    - Straight/curved road
    - Control point Y-lock
    - Move control points seperately

    - You can now create points from a middle of a road, this will automatically create a new road and intersection
    - You now create an intersection from three points instead of two as two-point intersection aren't useful and create strange results
    - Moving a point now keeps its connection to intersections
    - The preset field for roads/prefab lines is now cleared after saving/loading to emphasize that its a one-time action
    - Presets can no longer be edited directly as this caused confusion, edit a road or prefab line and then save it as a preset instead
    - Splitting a segment now moves it's points slightly apart to prevent overlap
    - Added an option to configure the icon size of the action toolbar

    - Fixed intersection main road arrow being drawn when the terrain tab was selected instead of the main road tab
    - Fixed all scene views being rerendered instead of only the current one
    - Fixed other bugs

    - Removed right click dialog/Scene view menu as it isn't needed with the new systems
    - Removed road guidelines
    - Removed ability to create intersections from cyclic roads
    - Removed most keybinds as the toolbar now does its job
     
  10. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    V. 2.1.0:
    - Added use center distance property for prefab lines, to for example align streetlamps on both sides of the road
    - Added end mode to prefab lines to determine when to place the last prefab. Never does not place prefabs beyond the end point. Round only does it if the prefab's center is before the end point whilst Always places all prefabs that start before the end point
    - Creating a prefab line now automatically selects the add points mode
    - Creating a road system now automatically selects the create road mode
    - Added controls foldout to prohibited area inspector

    - Removed controls foldout for the road and prefab line inspectors as all actions are done with the buttons in the toolbar
    - Removed compatibility with older Unity versions (2020.3 or later is now required)

    - Fixed loading a road preset with prefab lines not applying the prefab lines
    - Fixed adding second prefab line point creating the point in the wrong direction
    - Fixed prefab line y-offset property being available even when deforming to terrain is enabled
    - Fixed points not drawing correctly when creating the first road in a road system
    - Minor fixes
    - Code cleanup

    V. 2.1.2:
    - Fixed not always being able to change materials in the lane inspector
     
    Last edited: Jun 16, 2022
    Sondre-S and SalihMucahit like this.
  11. Sondre-S

    Sondre-S

    Joined:
    Jun 29, 2013
    Posts:
    54
    Amazing! Very easy to use and yet a very powerful tool! Both cheaper and more customizable than other road building tools for Unity.
     
    Last edited: Jun 30, 2022
    MCrafterzz likes this.
  12. Sondre-S

    Sondre-S

    Joined:
    Jun 29, 2013
    Posts:
    54
    How do you change the intersection material?
     
  13. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    Please try V. 2.1.3
     
    Sondre-S likes this.
  14. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    V. 2.1.4
    - Intersections and their main roads now uses distance when calculation uvs, this should mitigate stretching
    - Added texture tiling multiplier property to intersections
    - Automatically generated intersection main roads now change their flipped uvs property depending on the connected lanes
    - Renamed intersections main road properties uv z scale/offset to texture tiling multiplier/offset to be consistent with lane property naming
    - Fixed intersections main road y offset property being named uv z scale in the inspector

    V. 2.1.5:
    - Fixed clicking on a road point handle on top of an intersection selecting the intersection
    - Fixed adding an intersection main road not always selecting it in the inspector
    - Fixed adding/removing intersection main roads creating an exception
    - Fixed generated intersection main roads having flipped uvs when a road is connected at it's start
    - Fixed the texture being stretched on a few triangles on an intersection
     
    Last edited: Jun 27, 2022
    SalihMucahit and Sondre-S like this.
  15. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    2.2.0:
    - Added options to intersection to generate crosswalks, with a bunch of different options
    - Added corner sharpness factor to intersection to control how sharp the corners are
    - Flatten intersection now accounts for base road y-offset, so that the intersection becomes flat even if the connected roads have different y-offsets
    - Removed being able to manually control the curve points for intersections as the new property is a much more intuitive way to achieve the same results

     
    SalihMucahit and Sondre-S like this.
  16. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    2.3.0:
    - Added left & right curve offset for intersections so that you can generate nice curves even though different connections are different far out from the intersection centre
    - Added option to control intersection corner sharpness factor per corner
    - Added handle to move intersections up/down

    - Fixed disabling generate crosswalks not removing crosswalks
    - Fixed removing a crosswalk sometime generating errors
    - Fixed intersections curve generating incorrectly for roads connected in an angle vertically
    - Fixed some other issues with adding crosswalks
     
    SalihMucahit likes this.
  17. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    2.3.1:
    - Editor textures are now no longer included in builds as they aren't used in runtime
    - Converted the road system toolbar and point inspector to overlays.
    - Fixed the point inspector not working for prohibited area points
     
  18. Cactus_on_Fire

    Cactus_on_Fire

    Joined:
    Aug 12, 2014
    Posts:
    675
    This looks like a very good solution but I couldn't find it on the assetstore. Is it possible to buy it from there to automatically update it?

    Also which unity versions does it support?
     
    Last edited: Jan 8, 2023
  19. MCrafterzz

    MCrafterzz

    Joined:
    Jun 3, 2017
    Posts:
    354
    The source code has now been uploaded as I no longer plan to develop this