Add support for FBX file format #56

This commit is contained in:
kovacsv 2021-08-12 08:21:13 +02:00
parent c92d1b7580
commit 0a547f7239
4 changed files with 17 additions and 3 deletions

View File

@ -27,6 +27,7 @@ The repository is separated into two parts. See more information in the [Develop
- ply (text and binary)
- gltf (text and binary)
- 3dm (experimental)
- fbx (experimental)
- off (text only)
### Export

View File

@ -159,7 +159,7 @@
<div class="intro_section only_full_width only_full_height"><img src="assets/images/3dviewer_net_logo.svg" class="intro_logo"></img></div>
<div class="intro_section intro_big_text">
Drag and drop your 3D models here.<br>
<b>obj, 3ds, stl, ply, gltf, glb, 3dm, off</b>
<b>obj, 3ds, stl, ply, gltf, glb, 3dm, fbx, off</b>
</div>
<div class="intro_section">
Or you can use the browse button above.

View File

@ -24,7 +24,7 @@
<p>
This is the user manual for the <a href="https://3dviewer.net">3dviewer.net</a> 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, and off.
Supported file formats: obj, 3ds, stl, ply, gltf, glb, 3dm, fbx, and off.
</p>
<p>
<ol>
@ -117,6 +117,19 @@
<td class="center green">&#x2713</td>
<td>experimental</td>
</tr>
<tr>
<td rowspan="2">fbx</td>
<td>text</td>
<td class="center green">&#x2713</td>
<td class="center red">&#x2717</td>
<td>experimental with three.js loader</td>
</tr>
<tr>
<td>binary</td>
<td class="center green">&#x2713</td>
<td class="center red">&#x2717</td>
<td>experimental with three.js loader</td>
</tr>
<tr>
<td rowspan="2">off</td>
<td>text</td>

View File

@ -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, and off files.',
'No importable file found. You can open obj, 3ds, stl, ply, gltf, glb, 3dm, fbx, and off files.',
importError.message
);
} else if (importError.code === OV.ImportErrorCode.ImportFailed) {