Skip to content

ashawkey/vscode-mesh-viewer

Repository files navigation

logo
VS Code Mesh Viewer

License: MIT Visual Studio Marketplace Version Visual Studio Marketplace Installs

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.

Install

Search in Marketplace: mesh-viewer.

install

Mesh preview

demo.mp4

Credits to "Kgirls01" (https://skfb.ly/6CIGK) by nuulbee is licensed under CC Attribution-NonCommercial-NoDerivs (http://creativecommons.org/licenses/by-nc-nd/4.0/).

mesh

Configuration

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.

Development

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

Acknowledgements & Reference

About

A 3D mesh viewer for vscode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published