glTF exporter #37

This commit is contained in:
Viktor Kovacs 2021-03-28 16:54:29 +02:00
parent fdb4b00fdc
commit 97425d8add
3 changed files with 8 additions and 6 deletions

View File

@ -48,7 +48,7 @@
<h2 id="supported_file_formats">Supported file formats</h2>
<p>
The website supports several file formats for import and export. If a file format has an ascii and binary version,
usually it's recommended to use the binary version. During export an ascii file is created.
usually it's recommended to use the binary version.
</p>
<p>
<table>
@ -102,13 +102,13 @@
<td rowspan="2">gltf</td>
<td>ascii (.gltf)</td>
<td class="center green">&#x2713</td>
<td class="center red">&#x2717</td>
<td class="center green">&#x2713</td>
<td>version 2.0</td>
</tr>
<tr>
<td>binary (.glb)</td>
<td class="center green">&#x2713</td>
<td class="center red">&#x2717</td>
<td class="center green">&#x2713</td>
<td>version 2.0</td>
</tr>
<tr>

View File

@ -118,13 +118,13 @@ table td.center
table td.green
{
color: #21C23C;
color: #21c23c;
font-weight: bold;
}
table td.red
{
color: #BF233D;
color: #bf233d;
font-weight: bold;
}

View File

@ -226,7 +226,9 @@ OV.ShowExportDialog = function (model)
{ name : 'stl (binary)', format : OV.FileFormat.Binary, extension : 'stl' },
{ name : 'ply (ascii)', format : OV.FileFormat.Text, extension : 'ply' },
{ name : 'ply (binary)', format : OV.FileFormat.Binary, extension : 'ply' },
{ name : 'off (ascii)', format : OV.FileFormat.Text, extension : 'off' }
{ name : 'off (ascii)', format : OV.FileFormat.Text, extension : 'off' },
{ name : 'gltf (ascii) - experimental', format : OV.FileFormat.Text, extension : 'gltf' },
{ name : 'gltf (binary) - experimental', format : OV.FileFormat.Binary, extension : 'glb' }
];
let formatSelect = $('<select>').addClass ('ov_dialog_select').appendTo (contentDiv);