From 5ae10403fa5fcb33ffe45b1f96399b014b5ba35d Mon Sep 17 00:00:00 2001 From: kovacsv Date: Sat, 30 Oct 2021 09:16:03 +0200 Subject: [PATCH] List all of the supported file formats. --- website/index.html | 2 +- website/info/index.html | 90 +++++++++++++++++++++++++++++---------- website/o3dv/js/loader.js | 2 +- 3 files changed, 70 insertions(+), 24 deletions(-) diff --git a/website/index.html b/website/index.html index ba54f4d..e713d53 100644 --- a/website/index.html +++ b/website/index.html @@ -180,7 +180,7 @@
Drag and drop your 3D models here.
- obj, 3ds, stl, ply, gltf, glb, 3dm, fbx, off + obj, 3ds, stl, ply, gltf, glb, off, 3dm, fbx, and more
Or you can use the browse button above. diff --git a/website/info/index.html b/website/info/index.html index d6b6e42..333c400 100644 --- a/website/info/index.html +++ b/website/info/index.html @@ -24,7 +24,7 @@

This is the user manual for the 3dviewer.net website. The website can open several 3D file formats and visualize the model in your browser. - Supported file formats: obj, 3ds, stl, ply, gltf, glb, 3dm, fbx, and off. + It supports obj, 3ds, stl, ply, gltf, glb, off, 3dm, fbx, and more.

    @@ -56,6 +56,7 @@ Format Import Export + Source Comment @@ -63,59 +64,83 @@ text ✓ ✓ - with mtl and texture support + Native + 3ds binary ✓ ✗ - with texture support + Native + stl text ✓ ✓ - binary version is preferred + Native + binary ✓ ✓ - - + Native + ply text ✓ ✓ - binary version is preferred + Native + binary ✓ ✓ - with vertex and face color support + Native + gltf text (.gltf) ✓ ✓ - version 2.0 + Native + binary (.glb) ✓ ✓ - version 2.0 - + Native + + + + off + text + ✓ + ✓ + Native + + + + binary + ✗ + ✗ + Native + + 3dm binary ✓ ✓ + rhino3dm experimental @@ -123,30 +148,51 @@ text ✓ ✗ - experimental with three.js loader + three.js + experimental binary ✓ ✗ - experimental with three.js loader - + three.js + experimental + - off + dae text ✓ - ✓ - - + ✗ + three.js + experimental - binary + wrl + text + ✓ ✗ + three.js + experimental + + + 3mf + text + ✓ ✗ - - + three.js + experimental + + + ifc + text + ✓ + ✗ + web-ifc + highly experimental

    - +

    Loading models

    There are several ways to load models. You can use files from your computer or load files hosted on an external web server. @@ -171,7 +217,7 @@

  1. Drag and drop all the relevant files into the browser window.

- +

Loading models hosted on a web server

You can load models by url with the open url button on the toolbar. @@ -217,7 +263,7 @@

  • Click on OK.
  • -

    +

    Missing files

    @@ -255,7 +301,7 @@ In this case you should self-host the viewer code and the models as well. See the developer documentation for details.

    - +

    Cookies policy

    You can check the policy at the Cookies Policy page. diff --git a/website/o3dv/js/loader.js b/website/o3dv/js/loader.js index 6e85721..7350dcf 100644 --- a/website/o3dv/js/loader.js +++ b/website/o3dv/js/loader.js @@ -5,7 +5,7 @@ OV.InitModelLoader = function (modelLoader, callbacks) if (importError.code === OV.ImportErrorCode.NoImportableFile) { return OV.ShowMessageDialog ( 'Something went wrong', - 'No importable file found. You can open obj, 3ds, stl, ply, gltf, glb, 3dm, fbx, and off files.', + 'No importable file found.', importError.message ); } else if (importError.code === OV.ImportErrorCode.ImportFailed) {