ashawkey / vscode-mesh-viewer

A 3D mesh viewer for vscode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 96.7%Language:TypeScript 3.1%Language:CSS 0.2%