warp-lab / files_3dmodelviewer Goto Github PK
View Code? Open in Web Editor NEW3D Model Viewer for Nextcloud
License: GNU Affero General Public License v3.0
3D Model Viewer for Nextcloud
License: GNU Affero General Public License v3.0
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
A clear and concise description of what you want to happen.
A clear and concise description of any alternative solutions or features you've considered.
Add any other context or screenshots about the feature request here.
So i installed the app, everything's work fine for me but other users cant view the model
I'm wondering your work structure
And did u guys integrate with slack or communication channel ?
When can we expect support for Nextcloud 27?
Support for Nextcloud 27
None - as far as I know there are not alternative apps
Nextcloud webpage crashes when trying to load model files > ~15MB on mobile browsers
Steps to reproduce the behavior:
Model preview loads normally, even after some time
Models will load the preview normally on desktop, the same models will cause the page to crash on mobile and tablet if they are too large
N/A
...(many lines of the same jQuery warning)...
[Warning] $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. (core-main.js, line 2)
[Debug] File info for /My/Directory/Path/3dmodel.stl fetched (viewer-main.js, line 2)
Object
apps_path
parameter is not explicitly configured/customised in config/config.php
Device: iPhone 12
OS: iOS 16.4
Browser and version: Safari 16.4
Device: iPad Pro 5th Gen
OS: iPadOS 16.4.1
Browser and version: Safari 16.4, Brave 1.49 (23.4.3.20)
Device: Galaxy Note8
OS: Android 9
Browser and version: Chrome 111.0.5563.116
Tested with model file sizes 8-50MB
On the mobile Apple devices, the loading spinner would display for a few seconds before reloading the page with an open sidebar and loading spinner, then the page would crash after several more seconds.
The Fileinfo object logged in the browser console always appears to be initially empty and will populate with properties at some point before the model renders in preview, on the mobile devices I'm not seeing the object populate with any data before the page crashes.
I was unable to reproduce the issue on desktop when changing the browser agent or in responsive mode to imitate a mobile device.
Poor performance when open the attached obj file.
Opening file takes too much time and memory. But if I open the same file in https://3dviewer.net/# it opens very fast.
Penthouse.zip
Looks that this app is not visible at appstore.
Support for 3dsMax scenes would be perfect, specifically files with the extension *.max -- this would be incredibly convenient. If possible, it would be amazing to store the project folder on a Nextcloud server and have the ability to view the scene simultaneously.
Any chance to add support for the .sh3d format from the open source software Sweet Home 3D?
Hello,
Thank you for excellent 3D viewer, just stunning! Is there anything that I could tweak on server side to make large models load and run? Thank you in advance!
Br Matti
Sharing files/folders with another user or via a link, and only giving view permissions and disallowing download, allows viewing documents with some apps, but not viewing 3D files. This is a real pity! So I can't share my own designed 3D models without copy protection.
The integration of a SecureView would be helpful, so that with these security settings when sharing, the files can still be viewed in the cloud. To do this, download options would have to be blocked on the app side and this SecureView would have to be registered for Nextcloud, as for example with OnlyOffice.
External 3d model portals, like:
Would be nice to see this feature as fast as possible and open the nextcloud maybe for more usage for 3d models.
I am using 3D viewer in my v25 snap installation. Once I try to open any STEP file it displays "importing..." forever.
Just open any STEP file
expected to see a 3D model preview
Yes, using Autodesk Inventor and SW eDrawings. Tried many different files. All without issues in these desktop apps.
There is an error in the browser log (Opera 64bit):
occt-import-js.js:1 Uncaught (in promise) TypeError: err is not a function
at occt-import-js.js:1:162214
apps_path
parameter is not explicitly configured/customised in config/config.php
Opera Browser, most recent version
also tried Edge and Firefox with same result
Steps to reproduce the behavior:
Yes, file is working when I open it in...
files_3dmodelviewer.tar.gz
from releases and unzipping the directory.apps_path
parameter is not explicitly configured/customised in config/config.php
Preview doesn't open, Nextcloud just downloads the file when clicked
Steps to reproduce the behavior:
The 3d viewer preview screen to display
GET https://[redacted]/custom_apps/files_3dmodelviewer/js/files_3dmodelviewer.js?v=841b80fe-19 net::ERR_ABORTED 404
Refused to execute script from 'https://[redacted]/custom_apps/files_3dmodelviewer/js/files_3dmodelviewer.js?v=841b80fe-19' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
A possibility to display the 3D models transparently would be great
It would be great if we could see the direction of normals for polygons.
Or, at least, see polygons with inverted normals. Indicate them with transparency or bright red color.
ifc fles, even small ones like 2MB, do not load. other formats do load but they take quite long. Im connected via LAN directly to the server where our nextcloud instance is running
Steps to reproduce the behavior:
Take a ifc file and try to look at it in the 3DModel Viewer
The ifc file should load an
Yes, using BIM VISION
.
ConsoleLogger.js:33 [INFO] viewer: Opening viewer for file {app: 'viewer', uid: 'm.burgert', path: '/BKK Cloud/AVA/haus.ifc'}
ConsoleLogger.js:29 [DEBUG] viewer: Fetching additional files... {app: 'viewer', uid: 'm.burgert'}
web-ifc-api-browser.js:1
Uncaught (in promise) EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
at new Function (<anonymous>)
at createNamedFunction (web-ifc-api-browser.js:1:213972)
at extendError (web-ifc-api-browser.js:1:214156)
at WebIFCWasm2 (web-ifc-api-browser.js:1:243576)
at IfcAPI2.<anonymous> (web-ifc-api-browser.js:1:1379921)
at Generator.next (<anonymous>)
at web-ifc-api-browser.js:1:1162
at new Promise (<anonymous>)
at __async (web-ifc-api-browser.js:1:849)
at IfcAPI2.Init (web-ifc-api-browser.js:1:1379712)
createNamedFunction @ web-ifc-api-browser.js:1
extendError @ web-ifc-api-browser.js:1
WebIFCWasm2 @ web-ifc-api-browser.js:1
(anonym) @ web-ifc-api-browser.js:1
(anonym) @ web-ifc-api-browser.js:1
__async @ web-ifc-api-browser.js:1
Init @ web-ifc-api-browser.js:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
Promise.then (asynchron)
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
Promise.then (asynchron)
ImportContent @ files_3dmodelviewer.js?v=570800e1-40:1
Import @ files_3dmodelviewer.js?v=570800e1-40:1
ImportLoadedMainFile @ files_3dmodelviewer.js?v=570800e1-40:1
ImportLoadedFiles @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
DecompressArchives @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
setTimeout (asynchron)
RunTaskAsync @ files_3dmodelviewer.js?v=570800e1-40:1
onReady @ files_3dmodelviewer.js?v=570800e1-40:1
TaskReady @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
Promise.finally (asynchron)
GetFileContent @ files_3dmodelviewer.js?v=570800e1-40:1
runTask @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
setTimeout (asynchron)
RunOnce @ files_3dmodelviewer.js?v=570800e1-40:1
Run @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
GetContent @ files_3dmodelviewer.js?v=570800e1-40:1
LoadFiles @ files_3dmodelviewer.js?v=570800e1-40:1
ImportFiles @ files_3dmodelviewer.js?v=570800e1-40:1
LoadModel @ files_3dmodelviewer.js?v=570800e1-40:1
LoadModelFromInputFiles @ files_3dmodelviewer.js?v=570800e1-40:1
LoadModelFromFileList @ files_3dmodelviewer.js?v=570800e1-40:1
Init3DViewerFromFileList @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
tryCatch @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
Appvue_type_script_lang_js_asyncGeneratorStep @ files_3dmodelviewer.js?v=570800e1-40:1
_next @ files_3dmodelviewer.js?v=570800e1-40:1
Promise.then (asynchron)
Appvue_type_script_lang_js_asyncGeneratorStep @ files_3dmodelviewer.js?v=570800e1-40:1
_next @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
construct @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ files_3dmodelviewer.js?v=570800e1-40:1
(anonym) @ vue.runtime.esm.js:1989
et @ vue.runtime.esm.js:1915
Promise.then (asynchron)
Ke @ vue.runtime.esm.js:1942
at @ vue.runtime.esm.js:1999
e.$nextTick @ vue.runtime.esm.js:3542
mounted @ files_3dmodelviewer.js?v=570800e1-40:1
We @ vue.runtime.esm.js:1863
ln @ vue.runtime.esm.js:4235
insert @ vue.runtime.esm.js:3158
_ @ vue.runtime.esm.js:6390
bo.nodeOps @ vue.runtime.esm.js:6609
e._update @ vue.runtime.esm.js:3963
r @ vue.runtime.esm.js:4081
bn.get @ vue.runtime.esm.js:4495
bn.run @ vue.runtime.esm.js:4570
yn @ vue.runtime.esm.js:4326
(anonym) @ vue.runtime.esm.js:1989
et @ vue.runtime.esm.js:1915
Promise.then (asynchron)
Ke @ vue.runtime.esm.js:1942
at @ vue.runtime.esm.js:1999
(anonym) @ vue.runtime.esm.js:4418
bn.update @ vue.runtime.esm.js:4560
de.notify @ vue.runtime.esm.js:730
set @ vue.runtime.esm.js:1055
Cn.set @ vue.runtime.esm.js:4644
(anonym) @ Viewer.vue:431
u @ runtime.js:63
(anonym) @ runtime.js:294
(anonym) @ runtime.js:119
Vm @ Download.vue?b226:19
i @ Download.vue?b226:19
Promise.then (asynchron)
Vm @ Download.vue?b226:19
i @ Download.vue?b226:19
Promise.then (asynchron)
Vm @ Download.vue?b226:19
i @ Download.vue?b226:19
(anonym) @ Download.vue?b226:19
(anonym) @ Download.vue?b226:19
openFile @ Viewer.vue:345
file @ Viewer.vue:256
We @ vue.runtime.esm.js:1863
bn.run @ vue.runtime.esm.js:4584
yn @ vue.runtime.esm.js:4326
(anonym) @ vue.runtime.esm.js:1989
et @ vue.runtime.esm.js:1915
Promise.then (asynchron)
Ke @ vue.runtime.esm.js:1942
at @ vue.runtime.esm.js:1999
(anonym) @ vue.runtime.esm.js:4418
bn.update @ vue.runtime.esm.js:4560
de.notify @ vue.runtime.esm.js:730
set @ vue.runtime.esm.js:1055
value @ Viewer.js:193
gm @ FilesActionHandler.js:40
action @ merged-index.js?v=570800e1-40:3025
_onClickFile @ merged-index.js?v=570800e1-40:4986
be @ _executeBound.js:8
(anonym) @ bind.js:10
(anonym) @ restArguments.js:16
dispatch @ jquery.js:5430
m.handle @ jquery.js:5234
App.vue:323 No new notification data received
App.vue:355 Polling interval updated to 30000
apps_path
parameter is not explicitly configured/customised in config/config.php
The IFC test files I used:
ifcs.zip
**Enabled:
_Disabled:
If Nextcloud working on server with low performance better to switch off some formats and set limit for files.
Viewer 0.0.11 was running without problems on NC 26 but after updating to NC 27.0.1 the following error occurred:
[files_3dmodelviewer] Fatal: TypeError: OCP\AppFramework\App::__construct(): Argument #1 ($appName) must be of type string, null given, called in /var/www/html/custom_apps/files_3dmodelviewer/lib/AppInfo/Application.php on line 37 at <>
When a shared link is generated (/s/abcde), would it be possible to run the viewer there to be able to view the file as a user foreign to the Nextcloud instance?
Other plugins like Nextcloud Office are able to do so, too, but I have no idea how that functionality is faciliated.
I need a kind of a cut button that allow to made a Section view through the body.
It will be great if one is able to view DXF and AutoCAD files
i have version 0.0.8 installed from the app store (non snap edition).
When I click a model file that is 16 MB or lower it loads fine. but when I click on a model file that is bigger then 16 MB the web page crashes with an out of memory error.
I have tired on Opera GX, Chrome, and Edge.
I have increased the php memory in the php.ini to 16 GB and I have tried everything I can think of.
https://3dviewer.net does not have an issue with the file and is able to load it in a matter of seconds and responds quickly.
Am i missing somthing and not changing the ram limits somewhere that i should be.
Below is what i get in my nextcloud instance
Below is what i get on https://3dviewer.net
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.