All Projects → playcanvas → playcanvas-viewer

playcanvas / playcanvas-viewer

Licence: MIT License
glTF 2.0 model viewer

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
Mustache
554 projects

Projects that are alternatives of or similar to playcanvas-viewer

playcanvas-gltf
glTF 2.0 support for the PlayCanvas Engine
Stars: ✭ 97 (-36.18%)
Mutual labels:  gltf, playcanvas
xeokit-react
Integratation of the xeokit viewer into a React application.
Stars: ✭ 27 (-82.24%)
Mutual labels:  gltf
panda3d-gltf
glTF utilities for Panda3D
Stars: ✭ 63 (-58.55%)
Mutual labels:  gltf
mixed-reality-extension-sdk
The Mixed Reality Extension SDK enables developers to build 3D world extensions for AltspaceVR, using Node.JS.
Stars: ✭ 139 (-8.55%)
Mutual labels:  gltf
binary-gltf-utils
Bundles glTF models, images, shaders and other assets into a Binary glTF (.glb) file.
Stars: ✭ 31 (-79.61%)
Mutual labels:  gltf
rendering-fw
Rendering framework with rasterizers & path tracers implemented using Vulkan, OptiX & OpenGL
Stars: ✭ 81 (-46.71%)
Mutual labels:  gltf
typescript-playcanvas-template
PlayCanvas TypeScript/WebPack template
Stars: ✭ 27 (-82.24%)
Mutual labels:  playcanvas
model-browser
model-browser is a command line tool available on npm, for browsing local 3D models via a web browser. It currently only supports GLB files.
Stars: ✭ 19 (-87.5%)
Mutual labels:  gltf
pg2b3dm
Tool for converting from PostGIS to b3dm tiles
Stars: ✭ 138 (-9.21%)
Mutual labels:  gltf
glTF-Shell-Extensions
Microsoft Windows shell extensions that pack .gltf to .glb and unpack .glb to .gltf
Stars: ✭ 82 (-46.05%)
Mutual labels:  gltf
godot-dynamic-gltf-loader
Dynamic GLTF loader module for Godot 3.2.4+
Stars: ✭ 14 (-90.79%)
Mutual labels:  gltf
gemini-viewer
WebGL BIM Viewer based on xeoKit-sdk, written with TypeScript.
Stars: ✭ 24 (-84.21%)
Mutual labels:  gltf
redcube
JS renderer based on GLTF to WebGPU or WebGL backends.
Stars: ✭ 86 (-43.42%)
Mutual labels:  gltf
lol2gltf
Tool for converting between the glTF format and League of Legends models and animations
Stars: ✭ 74 (-51.32%)
Mutual labels:  gltf
pixi-omber-gltf2-vector
Pixi.js library for using vector art created in Omber that's saved in glTF 2.0 format
Stars: ✭ 13 (-91.45%)
Mutual labels:  gltf
pcui-graph
A JavaScript library for creating node-based graphs
Stars: ✭ 78 (-48.68%)
Mutual labels:  playcanvas
GLTFKit2
A glTF 2.0 asset loader and exporter for Objective-C and Swift.
Stars: ✭ 30 (-80.26%)
Mutual labels:  gltf
webgl-gltf
GLTF Viewer For WebGL
Stars: ✭ 26 (-82.89%)
Mutual labels:  gltf
FlightAirMap-3dmodels
3D models used by FlightAirMap with Cesium
Stars: ✭ 23 (-84.87%)
Mutual labels:  gltf
gltf
👓 Go library for encoding glTF 2.0 files
Stars: ✭ 156 (+2.63%)
Mutual labels:  gltf

PlayCanvas glTF Viewer

The PlayCanvas glTF scene viewer is blazingly fast and 100% compliant with the glTF 2.0 spec.

PlayCanvas Viewer

You can find a live version at:

https://playcanvas.com/model-viewer

Viewing Scenes

The viewer can load any glTF 2.0 scene. Embedded glTF and binary glTF (GLB) can be dragged directly into the 3D view. To load an unpacked glTF scene, drag its parent folder into the 3D view.

You can also drag and drop images into the 3D view to set a background. Options are:

  • Single file images are treated as equirectangular projections. Supported formats are PNG, JPG and HDR. Find high quality HDR images at HDRHaven.
  • Six images are treated as cube map faces. Naming should be one of the following 5 forms, where each face name below should be incorporated in the overall filename like name_posx.png for example:
Face 0 Face 1 Face 2 Face 3 Face 4 Face 5
posx negx posy negy posz negz
px nx py ny pz nz
right left up down front back
right left top bottom forward backward
0 1 2 3 4 5

Supported URL Parameters

Some URL query parameters are available to override certain aspects of the viewer:

Parameter Description Example
load/assetUrl Specify URL to a glTF scene to load ?load=URL
cameraPosition Override the initial camera position ?cameraPosition=0,0,20

How to build

Ensure you have Node.js installed (v10.0+). Then, from a command prompt, run:

npm install
npm run build

This will invoke Webpack and output the built viewer to the dist folder. To invoke Webpack with the --watch flag (which rebuilds the viewer on saving any source file), do:

npm run build:watch

The size of the build can be checked by running:

npm run build:analyze

How to build with local PlayCanvas engine

You can set the npm build scripts to use local versions of the playcanvas engine & playcanvas extras builds by setting the following environment variables when launching the npm build scripts:

ENGINE_PATH=./path/to/engine npm run build

How to run

Run:

npm run serve

Open a browser and navigate to http://localhost:5000.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].