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

Feature request: preview enhancements #266

Open
mr0x13f opened this issue May 20, 2024 · 0 comments
Open

Feature request: preview enhancements #266

mr0x13f opened this issue May 20, 2024 · 0 comments

Comments

@mr0x13f
Copy link

mr0x13f commented May 20, 2024

Based on my workflow I came up with four enhancements for the glTF preview I think would be a good fit.

1 Add preview settings to extension settings

The options available as part of the glTF preview (toggling the background, debug mode, render grid etc) are not extension settings and therefore get reset every time a preview is opened. Adding these as extension settings would be more convenient.

2 Allow for opening .gltf and .glb files as the preview by default

For markdown files, VSCode allows for setting the default editor as the markdown preview with workbench.editorAssociations. It would be great to be able to do the same for the glTF preview. I find myself opening a .gltf file to preview it much more often than to edit it as text.

3 Automatically refresh on file change

I would like to see the preview refresh automatically when the model file on disk changes from being re-exported or edited. Currently the preview needs to be manually closed and reopened, or the "Developer: Reload Webviews" command needs to be used. Combined with the fact preview options aren't saved, this can get pretty cumbersome.

4 Add ruler overlay and/or reference model

I find myself often wanting to check whether a model is at the right scale. Currently I'm having to open Blender or Godot for this. This could be done from the glTF preview if the preview had the option to display a ruler next to the model. It would be even better to also have the option to specify a scale reference model of sorts in the settings, to be rendered alongside the model.

gltftools_previewmockup

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant