AlvinfromDiaspar
AlvinfromDiaspar

Reputation: 6814

THREE.js - Can someone please explain how to use this library?

I downloaded three.js (three.js-master) and am confused by what I'm seeing because of the following 3 things: - There is a Three.Legacy.js vs a Three.js under the /src folder. - Also under the /src folder there are various smaller files (e.g. scene.js). - Under /examples/js there are even more various files.

Question

If I want to create a new application using the latest & greatest version of Three.js, what files must I be referencing?

thanks.

Update

So I discovered that three.js exists under /src AND under /build. The one under /src is a mere 7 KB in size while the other one is 949 KB. The 7KB file has many things missing. What is the purpose of this file and why does it even exist? It's simply confusing.

Upvotes: 0

Views: 601

Answers (1)

Sang Dang
Sang Dang

Reputation: 489

The Documentation says that you only need the three.js so use the three.min.js inside build folder is the best.

In practical development, we should not edit the source code, that's why they write every new and/or customised feature into separate small files.

http://threejs.org/docs/index.html#Manual/Introduction/Creating_a_scene

Upvotes: 1

Related Questions