Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a toggleable mesh origin display in the GridMap editor #6651

Open
jkulawik opened this issue Apr 6, 2023 · 0 comments
Open

Add a toggleable mesh origin display in the GridMap editor #6651

jkulawik opened this issue Apr 6, 2023 · 0 comments

Comments

@jkulawik
Copy link

jkulawik commented Apr 6, 2023

Describe the project you are working on

A 3D game which features levels made using GridMap

Describe the problem or limitation you are having in your project

When using meshes which aren't entirely enclosed in the cell size (e.g. stairs, meshes with origins in their corner), deleting them on the GridMap is cumbersome. It is usually not possible to tell which cell each mesh belongs to, requiring a lot of fiddling to remove it.

This issue is exacerbated when using multiple floors on the GridMap.

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

In the GridMap editor:

  • Implement a toggleable display of cell origins
    • Display a dot in the cell with the mesh
    • Display the floor the cell belongs to as a number next to the dot (with a separate toggle)
    • Limit the display of the above to a configurable radius around the cursor
    • Add a similar dot display to the current cursor placement. Use a contrasting color to distinguish. This part is also particularly useful when a currently used mesh is invisible because of backface culling (e.g. painting a ceiling without flipping the camera upside down)
    • Alternatively, color the entire cell instead of using dots (this will be much easier to read, however I'm not sure if meshes are placed on line intersections or in the middle of the squares)
  • Add 3D scaling for the select mode (Shift+drag)
    • After the horizontal area is selected, make the next mouse drag set the selection box height

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

These changes should be fairly simple expansions of existing code

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

Not that I know of and seems unlikely

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

It's a part of an already existing core feature

@Calinou Calinou changed the title Toggleable mesh origin display in Gridmap editor Add a toggleable mesh origin display in Gridmap editor Apr 6, 2023
@Calinou Calinou changed the title Add a toggleable mesh origin display in Gridmap editor Add a toggleable mesh origin display in the GridMap editor Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants