adds json, fbx, stl, dae, ply

This commit is contained in:
buttle 2021-04-09 10:05:52 +02:00
parent 50c78468fa
commit 6615daba09
3 changed files with 51 additions and 1 deletions

View File

@ -14,6 +14,10 @@ class Module extends AbstractModule
'obj' => 'OBJ',
'obj+mtl' => 'OBJ + MTL',
'json' => 'JSON',
'fbx' => 'FBX',
'stl' => 'STL',
'dae' => 'Collada .dae',
'ply' => 'PLY',
];
public function getConfig()

View File

@ -12,6 +12,7 @@ This module requires the [Omeka-S-module-ArchiveRepertory] to be installed.
cd ./modules
https://git.hangar.org/arcHIVE-tech/3D-Renderer/archive/main.zip
unzip main.zip
mv 3d-renderer/ Render3D
```
### Omeka global settings

View File

@ -53,6 +53,51 @@ console.log(<?= json_encode($urls, JSON_UNESCAPED_SLASHES) ?>)
</div>
<?php } ?>
<?php if ($model_type == "json") { ?>
<div id="<?= $id ?>">
<model-three
src="<?= $urls[0]; ?>"
>
</model-three>
</div>
<?php } ?>
<?php if ($model_type == "fbx") { ?>
<div id="<?= $id ?>">
<model-fbx
src="<?= $urls[0]; ?>"
>
</model-fbx>
</div>
<?php } ?>
<?php if ($model_type == "stl") { ?>
<div id="<?= $id ?>">
<model-stl
src="<?= $urls[0]; ?>"
>
</model-stl>
</div>
<?php } ?>
<?php if ($model_type == "dae") { ?>
<div id="<?= $id ?>">
<model-collada
src="<?= $urls[0]; ?>"
>
</model-collada>
</div>
<?php } ?>
<?php if ($model_type == "ply") { ?>
<div id="<?= $id ?>">
<model-ply
src="<?= $urls[0]; ?>"
>
</model-ply>
</div>
<?php } ?>
</div>
<script>