godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.05k stars 65 forks source link

Improve `RootMotionView` visualization #9645

Open ydeltastar opened 2 weeks ago

ydeltastar commented 2 weeks ago

Describe the project you are working on

3D character locomotion system.

Describe the problem or limitation you are having in your project

The RootMotionView visualization is hard to see. The lines are very thin and when moving with temporal anti-aliasing enabled, they almost vanish.

https://github.com/godotengine/godot-proposals/assets/133662278/c19cab88-f2bc-4caa-8bac-576a3808db82

Describe the feature / enhancement and how it helps to overcome the problem or limitation

RootMotionView could have more visualization options. Ideally, a Plane mode and let the user set a material which will have its uv1_offset animated so we can do anything supported by materials like a repeating grid texture.

MecanimRootMotionPreview

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Add a preview_mode property with options Lines (current behavior) or Plane which will show a subcategory of options to set up a material and maybe uv animation options. It will implement the visualization with a PlaneMesh and UV offsetting internally.

If this enhancement will not be used often, can it be worked around with a few lines of script?

The only exposed values for visualization are color and general size.

Is there a reason why this should be core and not an add-on in the asset library?

The only available built-in settings are unusable with temporal anti-aliasing.