AnalyticalGraphicsInc / gltf-vscode

This is an extension for Visual Studio Code to add support for editing glTF files.
Apache License 2.0
461 stars 63 forks source link

Print the values in matrices in a less misleading way #199

Closed Makogan closed 4 months ago

Makogan commented 4 years ago

Currently the values in a matrix buffer are printed like this:

image

Each vector in that list is actually a column, but because they are printed horizontally the user can miss interpret them as rows.

The vectors should be the rows of the matrix not the columns.

emackey commented 4 months ago

The thing you're seeing is what VSCode believes is a "tree view", so it seems there's no way to get multiple rows other than by expanding the tree:

expanded tree screenshot

But that's not really ideal. A better option is to place the cursor at the start of the accessor in question, such as accessor 81 here:

accessor 81 screenshot

And then press ALT + d for "decode'. This opens a new text viewer with the decoded data:

decoded screenshot

As a separate text viewer, this allows easier copying of data, etc.

bghgary commented 3 months ago

FWIW, there is already an option for copying the data to text via copy and paste.

image