1
3
Fork
You've already forked bolt-devplugin
1

Add the ability to click on entities in the canvas to filter the sidebar as well as a means to export vertices in lua code #1

Open
J3sven wants to merge 4 commits from J3sven/bolt-devplugin:canvas-select into master
pull from: J3sven/bolt-devplugin:canvas-select
merge into: Adamcake:master
Adamcake:master
First-time contributor
Copy link
  • Added a colorpicking selection method to the canvas using a new framebuffer and shader that assigns each model an unique RGB value, clicking an entity in the canvas will automatically filter the sidebar for that entity.
  • Improved page responsiveness while loading in the sidebar data by chunking the process
  • Added the option to export model vertex data as a lua codesnippet, both in a sampled form (selection of 5 vertices equally distributed over the model) or the entire model. The snippet assumes the user uses the utils that were written for the questhelper plugin.
- Added a colorpicking selection method to the canvas using a new framebuffer and shader that assigns each model an unique RGB value, clicking an entity in the canvas will automatically filter the sidebar for that entity. - Improved page responsiveness while loading in the sidebar data by chunking the process - Added the option to export model vertex data as a lua codesnippet, both in a sampled form (selection of 5 vertices equally distributed over the model) or the entire model. The snippet assumes the user uses the utils that were written for the questhelper plugin.
First-time contributor
Copy link

Been trying it out, super useful.
I had locally a different version with a button which would just copy the vertex data (of the first vertex) immediately to clipboard. This actually worked super nicely so I'm wondering if we could do something similar instead of the popup, having to select and then copy paste.

Was also thinking to maybe make it a setting how many vertices we want to copy. Similar to how in a texture you can select which row you want.

Been trying it out, super useful. I had locally a different version with a button which would just copy the vertex data (of the first vertex) immediately to clipboard. This actually worked super nicely so I'm wondering if we could do something similar instead of the popup, having to select and then copy paste. Was also thinking to maybe make it a setting how many vertices we want to copy. Similar to how in a texture you can select which row you want.
First-time contributor
Copy link

Is it possible that the Batch2D image selection is gone? I.e. you can toggle the batch2d but not the individual images

Is it possible that the Batch2D image selection is gone? I.e. you can toggle the batch2d but not the individual images
First-time contributor
Copy link

Seems this is missing Batch2D -> Image toggling? Otherwise super nice.

Seems this is missing Batch2D -> Image toggling? Otherwise super nice.

Just getting round to looking at this. The added features seem very useful, but as others have said, there's no way to toggle batch2d images anymore, which makes it almost impossible to find an individual image. Being able to click on individual images would be nice too but might be too much to ask.

Also, if you click on something and then click on something else, most of the left-side panel doesn't update. Here I clicked on a 3d model and then on the UI, and it says batch2d on the left but it's still showing the vertices for the 3d model under it.
image

I'm getting quite a few dead clicks too, or rather cases where what appears to be under the mouse isn't what's actually getting highlighted or clicked on. Have you seen that yourself while testing this, and do you know why it might be happening?

Just getting round to looking at this. The added features seem very useful, but as others have said, there's no way to toggle batch2d images anymore, which makes it almost impossible to find an individual image. Being able to click on individual images would be nice too but might be too much to ask. Also, if you click on something and then click on something else, most of the left-side panel doesn't update. Here I clicked on a 3d model and then on the UI, and it says batch2d on the left but it's still showing the vertices for the 3d model under it. ![image](/attachments/3302d183-def9-4ee5-9d62-f6246fa62e3a) I'm getting quite a few dead clicks too, or rather cases where what appears to be under the mouse isn't what's actually getting highlighted or clicked on. Have you seen that yourself while testing this, and do you know why it might be happening?
This pull request has changes conflicting with the target branch.
  • app/dist/index.html
  • app/src/App.svelte
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u canvas-select:J3sven-canvas-select
git switch J3sven-canvas-select

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff J3sven-canvas-select
git switch J3sven-canvas-select
git rebase master
git switch master
git merge --ff-only J3sven-canvas-select
git switch J3sven-canvas-select
git rebase master
git switch master
git merge --no-ff J3sven-canvas-select
git switch master
git merge --squash J3sven-canvas-select
git switch master
git merge --ff-only J3sven-canvas-select
git switch master
git merge J3sven-canvas-select
git push origin master
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Adamcake/bolt-devplugin!1
Reference in a new issue
Adamcake/bolt-devplugin
No description provided.
Delete branch "J3sven/bolt-devplugin:canvas-select"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?