adds json, fbx, stl, dae, ply
This commit is contained in:
parent
50c78468fa
commit
6615daba09
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -52,7 +52,52 @@ console.log(<?= json_encode($urls, JSON_UNESCAPED_SLASHES) ?>)
|
|||
</model-obj>
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue