Now that RawGit is no longer serving up files, I’m using unpkg for referencing files from GitHub to include in jsfiddles and codepens, for example, OrbitControls.js
:
<script type="text/javascript" src="https://unpkg.com/three@0.97.0/examples/js/controls/OrbitControls.js"></script>
This works fine. Any other options out there?
Mugen87
October 30, 2018, 11:09am
2
There was also a discussion about that topic at github:
The following site seems to work very well. I have used it in the latest PRs.
https://raw.githack.com/
2 Likes
ben
October 31, 2018, 12:54am
3
I’ve used with my fiddles!
hofk
October 31, 2018, 7:59am
4
2 Likes
Thanks for reporting!
I’ve replaced rawgit with the three.js
domain. Links look like this now:
https://threejs.org/build/three.js
https://threejs.org/examples/js/loaders/GLTFLoader.js
hofk
October 31, 2018, 4:31pm
6
That’s what I was afraid of!
Apparently every user has to do this “by hand”.
With
Endless Forest (2018 Port)
now the link to https://jsfiddle.net/ctsqkpgh/6/show is new.
But in my collection remains the old link
https://jsfiddle.net/ctsqkpgh/ with rawgit.com !
Since surely not all links are renewed by the authors, there will be many broken links.
Yeah, this is unfortunate. But when a CDN goes offline, broken links are inevitable
hofk
October 31, 2018, 8:14pm
8
Links of the form https://threejs.org/build/three.js
are also problematic, because the content changes with the versions.
An older example:
three.js, geometry
I noticed that there is a problem, when I was looking at the examples from discourse.threejs.org
I have a wall plane and I need to be able to add a door to this wall plane that can be moved but will not move outside the wall. It also needs to be restricted to be at the bottom of the plane. Can anyone show me a brief code sample or point to one that will teach me the proper functions for this? Thanks in advance.
The solution @prisoner849
Edit fiddle - JSFiddle - Code Playground uses threejs.org/build/three.min.js
Therefore I have always tried to use the currently valid version in the examples. In addition the version number in the file name.