#TreesJS master file no work on mobile.
25 messages · Page 1 of 1 (latest)
However the link : https://threejs.org/examples/webgl_postprocessing_unreal_bloom.html works well.
downloaded precisely what, precisely from where 
considering https://www.npmjs.com/package/treesJS doesn't exist - I am only so terrified as to what you're actually attempting to execute on your device 🥲
On treeJS, ok my Bad, i no desactivate isolation mode on device
Official link https://threejs.org/
I went crazy trying to solve my previous problem, so I wanted to import locally, because I think that was the problem, but with this new attempt, I forgot to disable a parameter that disable webgl 😝
you realise that downloads the entire history of the master branch, not the library, right 🥲 ?
https://github.com/mrdoob/three.js/tree/dev/build - if you really want a local copy of three, just copy one of these files
I suspect ^^ but I also need the addons concerned too, otherwise it won't work well, right?
yes, but that unlikely justifies copying 350MB of entire master branch
either copy example files separately - depending on what you need (from example/jsm directory)
or just use npm i three - and you'll get the entire build + addons (without the 300MB)
350 you're nice I exceeded 500 MB 😂
yup - considering the lib + addons are like 400kb, 500MB is a bit of an excessive overhead 🥲
^^ NPM I don't know how to set it up, for now I use: <script type="importmap">{"imports": {"three": "https://threejs.org/ build/three.module.js","three/addons/": "https://threejs.org/examples/jsm/"}}</script> but apparently this has created problems on some mobile, and even if I use es-module-shims, so I thought that locally it would work better, but I admit I was a bit excessive 😂
When I say locally, I'm not talking about my computer, but having dl files on my server
- install node.js, you'll get npm automatically
- open vscode, in terminal there test
npm -vto see if version shows up - init npm project with
npm init -y - install three with
npm install three - when all previous steps succeed, spend 5 mins reading https://vitejs.dev/guide/ , install vite, and you're ready to go
vite + npm will make your coding significantly easier and faster - it's worth investing a second to read through that getting started
Yes it may be a bit better than notepad++ 😂 Ok this is used to make the link with vscode, but if I'm on my web server, I have to do my import either via the site or a repository, or hosted on my web server, right?