From cddef5fa30c6f8b3bbb72d84a709ccaae3d1a1f8 Mon Sep 17 00:00:00 2001 From: alexstocker Date: Mon, 14 Oct 2024 07:31:53 +0200 Subject: [PATCH] [Feature] Extend supported file types #1 (#27) * Added basic STL support * Added AxesHelper * Added basic FBX support * Added basic OBJ support and fixed unloading models on prev/next * Modified CHANGELOG * Lint fix * Update src/index.ts Co-authored-by: Sawjan Gurung * Update src/App.vue Co-authored-by: Sawjan Gurung * Update src/App.vue Co-authored-by: Sawjan Gurung * Remove scene.remove for renderNewModel. no longer needed --------- Co-authored-by: Alexander Stocker Co-authored-by: Sawjan Gurung --- .gitignore | 3 +- CHANGELOG.md | 7 +++ README.md | 7 ++- src/App.vue | 141 ++++++++++++++++++++++++++++++++++++++++++++------- src/index.ts | 12 +++++ 5 files changed, 146 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index 04c01ba..9f47cb2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.idea node_modules/ -dist/ \ No newline at end of file +dist/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c74d06..33e415d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added +Added basic OBJ support +Added light and ambient +Added default material +Added basic FBX support +Added basic debugging mode +Added basic STL support ### Fixed +Fixed unloading models on prev/next ### Changed diff --git a/README.md b/README.md index c17e190..90cc85a 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,11 @@ ![3d model viewer ui](./docs/ss-light.png) -This is an extension for [ownCloud web](https://github.com/owncloud/web) for viewing 3D files. Currently, it can only display 3D models in `.glb` file format. +This is an extension for [ownCloud web](https://github.com/owncloud/web) for viewing 3D files. ## Feature Highlights ✨ -- Supported formats: - - `.glb` +- Supported formats: [`.glb`, `.stl`, `.fbx`, `.obj`] - Zoom/Rotate model - Fullscreen view - Navigate between model files @@ -51,7 +50,7 @@ Now, you can access the app at https://localhost:9200 ## 3D models -The app currently only supports 3D models in `.glb` format. You can find models on the following platforms: +You can find models on the following platforms: - [sketchfab](https://sketchfab.com/) - [3Dexport](https://3dexport.com/free-3d-models) diff --git a/src/App.vue b/src/App.vue index ca9767e..43bdca2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -45,18 +45,26 @@