VS Code Mesh Viewer
This extension is modified from vscode-3d-preview with the following features:
- Preview meshes in FBX/GLB/GLTF/OBJ/PLY formats with texture.
- Play FBX/GLB/GLTF animations.
- Default to white background.
- Depth/Normal rendering.
- Preview point clouds or mesh vertices.
Search in Marketplace: mesh-viewer.
demo.mp4
The default value of GUI settings can be edited in vscode extension settings (@ext:kiui.mesh-viewer).
For example:
CameraNear
: -1 means we will auto-calculate a suitable value for better depth visualization, but it may lead to problems when zooming in.
Install Node.js
and npm
first, then clone this repo and:
# install dependencies
npm install
# use F5 or the dubugger panel to start debugging (will open a new VSCode window with this extension enabled.)
# Help->Toggle Developer Tools (or Shift-Control-I) to see console output.
# publish (requires vsce, a publisher as defined in package.json, and the personal access token)
# first change version in package.json
vsce publish