Comments (5)
this package support loading models from URL, just pass the URL instead of static path.
from flutter_3d_controller.
this package support loading models from URL, just pass the URL instead of static path.
but my models in ftp server,there have no nginx or any other proxy site, so i must download it and save to local directory ,can you help me
from flutter_3d_controller.
In that case you have two choice, first download the model and create file from it then take it's temporary path. second download the model and save it to local storage and then take the path of saved model and pass it to package,
your use case will need more than just model viewer library, for example you can use Dio package for downloading your models.
from flutter_3d_controller.
在这种情况下,您有两种选择,首先下载模型并从中创建文件,然后采用其临时路径。其次下载模型并将其保存到本地存储,然后获取保存模型的路径并将其传递给包,您的用例需要的不仅仅是模型查看器库,例如您可以使用 Dio 包来下载您的模型。
my code it's below ,but it's not working
Directory appDocDir = await getApplicationDocumentsDirectory();
String filePath = '${appDocDir.path}/local.glb';
Flutter3DViewer(
controller: controller.three3Dcontroller,
src: filePath,
)
from flutter_3d_controller.
As your issue is not about the package and its about your use case maybe it needs more research, I have no more Idea right now, if you found way to solve share it please share, thanks.
from flutter_3d_controller.
Related Issues (13)
- support this library for desktop? HOT 2
- Formats Support HOT 2
- Load glb file from device internal storage in AOS & iOS HOT 1
- Unable to fetch Animations and textures on iOS. HOT 1
- Loading animations from a separate file HOT 4
- DIspose not present HOT 2
- is it possible to add decorations? HOT 2
- Clicking on 3D Models and Feature to Zoom In on the Clicked Model Part HOT 1
- Can't able to open obj format HOT 1
- Custom progress bar HOT 2
- Dynamically add textures from a path HOT 3
- Not working on iOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_3d_controller.