VSCode 3D Viewer Light

See in VS Marketplace: vscode-3d-preview
Description
This extension is inspired by vscode-3dviewer but has minimal features to preview triangular meshes, and point clouds.
Features
This extension supports 3D formats equally as Open3D (but partly not support currently).
|
point |
mesh |
| obj |
o |
o |
| off |
o |
o |
| pcd |
o |
x |
| ply |
o |
o |
| stl |
x |
o |
| xyz |
o |
x |
Mesh preview

Point cloud preview

Large color point cloud

Configuration
The extension provides several configuration options that can be set in VS Code settings:
Coordinate System
- Setting:
3dpreview.coordinateSystem
- Default:
"opengl"
- Options: Platform presets and custom configuration
This setting allows you to switch between different coordinate systems used by various 3D platforms:
- OpenGL (default): +X right, +Y up, +Z forward
- Blender: +X right, +Z up, -Y forward
- Unity: +X right, +Y up, +Z forward (left-handed)
- Unreal: +Y right, +Z up, +X forward
- Maya: +X right, +Y up, +Z forward
- 3ds Max: +X right, +Z up, -Y forward
- OpenCV: +X right, -Y up, +Z forward
- COLMAP: +X right, -Y up, +Z forward
- NeRFStudio: +X right, +Y up, +Z forward
- Custom: User-defined axis configuration
Custom Coordinate System
When set to "custom", you can configure individual axes:
- Setting:
3dpreview.customCoordinateSystem
- Properties:
rightAxis: Which axis points right (+x, -x, +y, -y, +z, -z)
upAxis: Which axis points up
forwardAxis: Which axis points forward
Usage
You can change the coordinate system:
- Through VS Code settings (search for "3dpreview.coordinateSystem")
- Using the "Coordinate System" folder in the 3D viewer's control panel
- For custom systems, adjust individual axes in the "Custom Axes" subfolder
This feature is particularly useful when working with 3D models from different software packages that use different coordinate system conventions.
FAQ
- Q. When I drag and drop a mesh file, a blank display is shown.
- A. To show a 3D data using this extension, you should first open a workspace including the 3D data that you want to open.
Reference
License
GNU General Public License v3 2021-2025 (c) Tatsuya Yatagawa
| |