You can choose to use a minified or a non-minified version of the three.js library. Minified files are good for production but can be hard to use in development. You just need to have an element with a unique ID in your HTML file to be able to attach the 3D content in from your JavaScript code. And very simple CSS styling on the page is sufficient for the purposes of this course.
- [Instructor] When using Three.js, you will need to serve…your HTML file through a server to be able to load in…some of the assets that we will be using in this course.…If you are looking for a server that is easy to set up,…you can use Python to start a simple…HTTP server using this comment.…This comment assumes you are using Python 2.…If you are using Python 3, this is the comment…that you should use, or you could install third party…solutions as well, I'm using a tool called live-server…that I installed through MPM.…
It supports live reloading of files…whenever there is a change in them.…You can find that tool on this page.…You will have the server running…at the root of the project files.…We can start live-server by typing live-server…inside the terminal, I will have the server running…at the root of my project files.…If you want to use Three.js in production,…you can find the minified version…of the library on their GitHub page.…A minified file is smaller in size and has more…efficient use in production, why debugging is harder…
Author
Released
6/30/2017- Building a simple scene
- Creating three.js 3D objects
- Adding light and shadows
- Animating with Tween.js
- Working with materials and textures
- Editing and importing geometries
- Creating a particle system
- Post-processing with effects and shaders
Skill Level Intermediate
Duration
Views
Related Courses
-
Adobe Animate CC: HTML5 Canvas and WebGL
with Joseph Labrecque1h 36m Intermediate
-
Introduction
-
Welcome55s
-
-
1. Building a Simple Scene
-
Introduction to three.js2m 12s
-
Set up the environment2m 37s
-
Scene essentials5m 17s
-
Populate the scene7m 42s
-
Create a ground plane5m 27s
-
-
2. Three.js Scene Object
-
Three.js objects1m 56s
-
Other Object3D properties5m 14s
-
Adding fog to the scene3m 22s
-
-
3. Lights
-
Lighting in three.js2m 23s
-
Light types5m 25s
-
dat.GUI2m 55s
-
Orbit controls2m 31s
-
Shadows1m 21s
-
SpotLight4m 37s
-
DirectionalLight4m 11s
-
AmbientLight2m 37s
-
RectAreaLight52s
-
-
4. Animation
-
Random() function2m 16s
-
Math.sin() and Math.cos()4m 56s
-
Add noise1m 38s
-
Camera2m 14s
-
Animation rig6m 19s
-
Animation rig, part 210m 35s
-
Tween.js8m 13s
-
-
5. Materials and Textures
-
MeshBasicMaterial1m 33s
-
MeshStandardMaterial2m 27s
-
Texture maps6m 27s
-
Roughness maps3m 10s
-
Environment maps4m 24s
-
-
6. Geometries
-
Primitive geometries2m 59s
-
Manipulating vertices6m 5s
-
External geometries4m 35s
-
-
7. Particles
-
Creating a particle system7m 46s
-
Stats.js2m 10s
-
-
8. Post-Processing
-
Post-processing1m 12s
-
EffectComposer7m 48s
-
Other shaders1m 25s
-
-
Conclusion
-
Next steps1m 53s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Set up the environment