Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the URL for three.js to include it online?

I am trying to make a javascript application in google app engine using three.js but I am not getting the URL to include it online in my document. I dont want to upload the whole three.js package, which is very big in size. I wanted to know if there was a way I can get URL to include the library just like this one for jQuery : http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js

If this question is already asked then please provide the link.

like image 526
goodbytes Avatar asked May 02 '14 18:05

goodbytes


People also ask

How do I run a 3 js file?

If you use just procedural geometries and don't load any textures, webpages should work straight from the file system, just double-click on HTML file in a file manager and it should appear working in the browser (you'll see file:///yourFile.html in the address bar).

Where can I download 3 min js?

If you want to download the libraries (without building the source code) you can go to https://cdn.jsdelivr.net/npm/[email protected]/build/three.js https://cdn.jsdelivr.net/npm/[email protected]/build/three.min.js https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js and download the already built version.


2 Answers

The search term for your question should be

three js cdn

Which produces the following links (for r128):

https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.js

https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js

like image 139
Michael Litvin Avatar answered Sep 23 '22 07:09

Michael Litvin


Please download the library and link to it locally.

However, if you must hot-link, then you can link to the three.js site directly.

<script src="http://threejs.org/build/three.min.js"></script>

<script src="http://threejs.org/examples/js/libs/tween.min.js"></script>

<script src="http://threejs.org/examples/js/libs/stats.min.js"></script>

TIP: If you are debugging, then use the un-minified version of three.js -- three.js -- not three.min.js.

three.js r.67

like image 28
WestLangley Avatar answered Sep 22 '22 07:09

WestLangley