Fast & customizable 3D model viewer for everyone

Version typescript supports

Fast & customizable 3D model viewer for everyone

👉 Demo / API Document / Tutorial / Related Article 1,2

Features

  • A customizable 3D model viewer based on the three.js
  • Supports LOD, which can greatly decrease time before 3D model displays.
  • Supports WebXR & SceneViewer AR for Android & AR Quick Look for iOS
  • Supports multiple AR types
  • Fully documented API
  • Typescript-based

Install

npm i @egjs/view3d
# OR
yarn add @egjs/view3d

Getting Started

@egjs/view3d requires one canvas element to be initialized.

<!-- Wrapper element -->
<div id="some-wrapper">
  <!-- View3D needs one canvas element to render a 3d model -->
  <!-- You don't have to set width / height attribute of it, as View3D will manage that for you. -->
  <!-- Just set its size with CSS, then View3D will use it -->
  <canvas id="my-canvas"></canvas>
  <!-- Other UI elements of your choice here -->
</div>

<!-- Here's some sample CSS style for the reference -->
<style>
#some-wrapper {
  width: 100vw;
  height: 100vh;
}
#my-canvas {
  width: 100%;
  height: 100%;
}
</style>

Then you can use it like

import View3D from "@egjs/view3d";

const canvasEl = document.querySelector("#my-canvas");
const view3d = new View3D(canvasEl);
// or just
const view3d = new View3D("#my-canvas");

See more examples on our Demo / Tutorial

Browser Coverage

View3D is available for browsers support webgl.

See more details at https://caniuse.com/webgl

Augmented Reality(AR) Coverage

License

Copyright (c) 2020-present NAVER Corp.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Author: Shantun Parmar

2 thoughts on “Fast & customizable 3D model viewer for everyone

  1. A lot of thanks for all your efforts on this site. Gloria loves engaging in investigation and it’s obvious why. My partner and i learn all regarding the lively tactic you present rewarding techniques through your web site and in addition invigorate response from some others on the situation then our favorite princess is really starting to learn a whole lot. Take advantage of the rest of the year. You have been doing a stunning job.

  2. I’m also commenting to let you be aware of of the cool discovery my child encountered checking your blog. She came to understand a lot of details, including how it is like to have a marvelous coaching heart to get folks easily fully grasp a variety of complicated issues. You actually did more than my desires. I appreciate you for delivering such good, dependable, edifying and also cool guidance on that topic to Ethel.

Thanks for your support, You may click on ads to encourage us which assits to writers.

Leave a Reply

Your email address will not be published.