Collection of examples from discourse.threejs.org

Actually this does not fit into this topic, but since other beginners may have similar problems, here are some explanations. :slightly_smiling_face:


If you download the zip-file from * discourse.threejs.hofk.de you will get all necessary things in the folder structure I use.

If you look in the source code of
DraggingObjects
you see

2020-05-11 11.10.35

“…/” does not mean somewhere, but means “go to the next higher level folder”.

Then it says “js/”, so together “…/js/”

So you will find the file three.min.106.js in the folder js in the next higher level folder.

If you unzip the zip file, you will have many folders with the examples in the folder of the year.

If you look carefully, you will also find the folder js. The short name is often used for JavaScript scripts.

Open the folder and you will see the files I needed for the examples in this particular year.

If you put examples on your server, you either need to create the folder structure like mine, or you change the path to access the files.

In one of your examples I have seen:

2020-05-11 11.34.48

So you have your own structure /js/threeJS/ , which you probably always choose. You should be a bit constant there, otherwise you get mixed up easily.


Sometimes I see examples where the version of three.js is not clear to me, or the author has changed three.js. This is allowed. Then I just copy the file.

Just click on the .js link in the source code and the file will be displayed in the browser. Copy with Ctrl + C and paste it into your own code editor with Ctrl + V .

Now you can name the file correctly and copy it into your appropriate directory.

:slightly_smiling_face:

A statement (GetSources) was added below. 2020-05-11 17.29.29



With the module version it gets a bit more complicated for beginners.

See

Further information can be found at the bottom left corner of
* discourse.threejs.hofk.de – Module usage

1 Like