TheDuckCow / godot-road-generator

A godot plugin for creating 3D highways and streets.
MIT License
316 stars 16 forks source link

40 gizmo for lane counts #53

Closed bdog2112 closed 1 year ago

bdog2112 commented 1 year ago

There still exists a rare selection issue where the lane widget is not fully functional. However, it is due to a quirky Godot limitation for which there is currently no fix.

In the Scene dock, if user selects two RoadPoints and ctrl-clicks the top-most RoadPoint, then it will become sort of but not really de-selected. This is indicated by the fact that the de-selected RoadPoint still has a rectangular outline, which means it's the primary selection. In turn, Godot will only allow handles on that RoadPoint.

In the meantime, Godot reports that only the second RoadPoint is selected. But, it enforces a hidden rule that says handles can only be displayed on the primary selection, which is the now de-selected RoadPoint.

So, the lane widget appears on the actual selected RoadPoint. But, Godot refuses to display handles because the selected RoadPoint is not the primary selection.

bdog2112 commented 1 year ago

There is one remaining item to address: Blue handles are tiny on your computer and normal (pink-handle-sized) on my computer.

I'm unable to re-create the problem. But, it stands to reason that changing the pink handle color to blue via a color change in materials might fix the issue.

Not sure if this is possible. However, I'll investigate and report back tomorrow.

bdog2112 commented 1 year ago

Hey @TheDuckCow, blue handle material setup has been changed. Please test and verify that the blue handles are now the same size as the pink handles.

What changed?

The assumption is that pink handles work fine. Thus, if we use pink handles as the base material and change only the image texture, then the blue handles should scale the same way as pink handles.

Although not shown in the latest commit, I tried changing the _albedocolor on the pink handles. This did not look very good. Although, it wasn't completely bad. It basically tinted both the white and pink colors to lighter and darker shades of blue. So, this is always an option.