BLACK FRIDAY
50% off
00:00/00:00
3:22
00:03:22

Shortcuts ⌨️

  • SPACE to play / pause
  • ARROW RIGHT or L to go forward
  • ARROW LEFT or J to go backward
  • ARROW UP to increase volume
  • ARROW DOWN to decrease volume
  • F to toggle fullscreen
  • M to toggle mute
  • 0 to 9 to go to the corresponding part of the video
  • SHIFT + , to decrease playback speed
  • SHIFT + . or ; to increase playback speed

Unlock content 🔓

To get access to 93 hours of video, a members-only Discord server, subtitles, lesson resources, future updates and much more join us for only $95 $47.50!

Want to learn more? 🖖

0%

That's the end of the free part of this lesson

Three.js Course $95 VAT incl.
  • 66 lessons · 93 hours of video
  • Quizzes · Certificate
  • Members-only Discord server · Future updates
Next lesson
Three.js
Chapter 01 · Basics

01. Introduction

Difficulty: Easy24:10

Introduction 00:00

Hello, and welcome. This lesson isn't truly a lesson. It's more of a presentation to introduce myself and present what's coming on your journey.

The main reason for this lengthy introduction is the fact that this course is quite big and that you need to be well-prepared.

Not yet a student? 00:20

Some of the lessons (like this one) are free and the beginning of most lessons is also available for free. I did this so that you can catch a glimpse of the course and what’s in it.

If you’ve already registered to Three.js Journey, ignore this message, because you have access to every lesson of this course. But if you aren’t a Three.js Journey student yet, please have a look. See for yourself and, if you like the content, join us.

Now let me introduce myself.

Who am I? 00:42

My name is Bruno Simon. I'm a French creative developer, as you can probably hear in the video.

I did many freelancing projects for clients from around the world, and I still do a little bit these days. I used to be the lead developer for Immersive Garden, a French creative studio. And for many years, I've been a professor for multiple French post-grad and Master's degrees. I teach web development to beginners as well as Three.js to more advanced students.

My favorite activity is, as you can guess, bringing 3D to the web and particularly with Three.js. I've been using it for many years on various projects.

In 2019, I launched my first portfolio. I initially meant it to showcase some techniques for my students, but I enjoyed doing it, so I kept improving it, and people seemed to appreciate it. It's still accessible here: https://2019.bruno-simon.com.

Since then, I've made a brand new one (https://bruno-simon.com), where you can also discover the projects I worked on.

Here is a selection of projects I worked on:

And some experiments I did just for fun:

Why this course? 02:53

When I started learning Three.js, I didn't have many resources. The library was flourishing, but it was without a doubt new, and there were many gaps in the documentation. At that time, we had to push through and dig into the code and examples, find threads about frequent problems, and keep trying until it worked.

Nowadays, the documentation is excellent. We have pretty decent tutorials, the library is stable, even though it's still evolving thanks to the community, and AI can help fill the gaps (more about AI right after). Yet, an ultimate course that takes you by the hand was still missing. You need guidance to fully understand this subject and get enough experience to do your projects without struggling or getting lost.

After I launched my first portfolio, many people asked me if I could tutor them or where to learn the techniques I use. I had in-depth knowledge of Three.js and I knew how to teach. When I got all those requests, I figured it was time to build that online course for everyone to explore.

What about AI? 03:45

You might be wondering if learning Three.js still makes sense now that AI can write code for you.

This course is intended for those who enjoy learning, who want to know how things really work, who want to keep putting their hands in the code, and who want to master the subject in order to guide the AI better.

And there are good reasons to master it:

  • Three.js evolves every month, and AI often produces outdated code, like old imports or deprecated features. Even more so with recent features like WebGPU and TSL. You need to know the library to spot those issues.
  • AI can't really experience the result the way a user does. Taste, the little tweaks that make a scene look and feel good, and the trade-offs between quality and performance are still your job.
  • When the AI gets stuck going in circles on a bug, the person who understands the code is the one who can fix it.

That doesn't mean you shouldn't use AI. Use it as a tutor to fill the gaps, or to do the boring parts. More about that in the How to study this course section.

What will you learn? 05:32

Three.js is vast, and you can do an infinite number of things with it. That explains why the course is so long.

There are now two courses on Three.js Journey. This one is dedicated to Three.js, and it is the one you should start with. The WebGPU & TSL course was added later and builds on it, especially on the shaders chapter. Both courses are kept up to date, and most of this one is still the foundation you need, whether you use WebGL or WebGPU.

The course is intended for absolute beginners. If you know nothing about WebGL and Three.js but want to create cool 3D websites, you’ve come to the right place.

Some of you might be tempted to jump straight to specific chapters. If you are in a hurry or just eager to learn advanced topics, be my guest and try. Still, my recommendation is to learn the lessons one by one in order. Anyway, if it’s too hard, you can still go back to a previous chapter.

The course is separated into chapters. Let’s talk a little about each one in order to help you apprehend what’s coming.

In the first chapter, we will learn all the basics, such as creating a first scene, rendering it, adding objects, choosing the right materials, adding textures, animating everything and even putting it online. Some might find this part a bit boring since we enumerate a lot of elements. Don’t worry, the fun and creative parts are coming.

In the next chapter, we will go through many classic techniques: for instance, creating our own geometries, adding lights and shadows, interacting with 3D objects, and adding particles. That’s where things get a little more exciting.

In the third chapter, we will learn more advanced techniques and even stray away from WebGL and Three.js, by learning how to create our own 3D models using Blender. That's right, this course also teaches you Blender! Then we will add physics, just like in my first portfolio. And I’ll even teach you how I personally organize my code for big projects.

In the fourth chapter, we are going to talk about shaders. If you’ve already heard about shaders, you probably know this is where people start to struggle, and for good reason. Shaders are hard, but shaders will unlock the true power of the GPU. You’ll be able to create things that would seem impossible at first. It's also the biggest chapter of the course, and we will go way beyond the basics:

  • Creating patterns, animated waves, and galaxies
  • Modifying the built-in Three.js materials
  • Creating effects like smoke, holograms, and fireworks
  • Handling lights and shading ourselves, including a halftone effect
  • Creating a realistic Earth
  • Animating and morphing particles, and even making them follow a flow field using GPGPU
  • Creating a wobbly sphere, slicing a model, and generating a procedural terrain

If you don’t understand what I’m talking about, don’t worry, everything will make sense once you finish this chapter.

In the fifth chapter, we will go the extra mile with even more advanced techniques, such as post-processing, performance optimization, and how to mix WebGL with HTML. This chapter comes after the shaders because most of these techniques require shader knowledge.

In the sixth chapter, we will learn how to create a scene like the one you see on the homepage of Three.js Journey. It’s not going to be the same scene because the chapter would have been way longer and more boring, but the techniques are exactly the same and you’ll be able to create any kind of scene after that.

And finally, in the seventh chapter, we will learn how to use Three.js in a React application with React Three Fiber. The number of techniques you’ll learn and practice is huge. You’ll even create a game with physics, real game mechanics, UI, and cool effects. Oh and, if you don’t know React, don’t worry, I’ve got you covered. There is a 4-hour long lesson dedicated to learning React basics. That’s a bonus. You came to learn Three.js and you’ll learn a bunch of other things along the way.

Because I'm a creative developer, I'll also do my best to help you create elegant experiences. I'll give you many tips and tricks to find the perfect tweaks for your 3D websites.

Updates 11:12

As a web developer, you probably already know how fast things are moving these days. Libraries come and go, updates are happening every day and it’s hard to keep up.

Don’t worry, I’m keeping Three.js Journey up to date. It has been out since early 2021, and since then, I’ve kept the dependencies up to date, re-recorded lessons that became outdated, added video alerts for smaller changes, and added many new lessons. And I’ll keep adding content that students of Three.js Journey will get access to without paying any extra.

How to study this course? 12:08

Difficulty

As you go through the lessons, you’ll see that things get harder. You will struggle, but don't worry, it's perfectly normal. No one can understand everything on the first try.

The first thing to understand is that, if it’s hard to learn, it’s valuable knowledge (or a bad teacher), so keep up.

Secondly, yes we approach challenging topics, but then we practice. After tackling challenging topics multiple times, it’ll start to make sense.

Find out how you can learn the best

Each individual has a unique way to learn. It's a valuable lesson for you to find out how you can get the most out of this course.

Find the moment of the day where you learn best. For me, it’s in the morning. Do not try to rush things and complete the whole course in only one week. The brain needs time to process knowledge, and it does it best at night. Maybe try one or two (three tops) lessons a day. Eat well, sleep enough, drink, and stay healthy. And don't forget to shut down any distractions.

Some people like to first focus on the lesson without doing anything else and then try to do the exercise themselves while going back to the parts they struggle with.

Some people just like to follow along and wait for the end of the lesson to then venture on their own by going the extra mile on the topic.

Of course, you don't need to finish the whole course to start working on projects, whether personal or professional. If you feel like dropping out and want to start creating on your own, go ahead! The course will be there waiting for you if you need it.

Using AI

AI can be a great companion to complete your knowledge and fill the gaps. You can ask it to explain a concept differently, to challenge you on a lesson, or to help you understand an error once you've tried to fix it yourself.

But don't ask it to do the exercises for you. You learn by practicing, and if the AI writes the code, you won't learn much. For the same reason, I recommend disabling the AI autocompletion of your code editor while following the lessons.

The videos

The player has some handy features, like changing the speed of the video, shortcuts, sections, subtitles, and fullscreen. Use them as you please.

Lessons

You might have noticed that lessons are available both as video and text. Text versions are almost the same and you get access to screenshots, video previews, drawings, graphs, code with syntax highlighting, etc. Use the version you prefer.

During each lesson, we will go through various documentation pages, online tools, and examples. All the links will be available under the "🔗 Lesson's links" button at the bottom-right of each page. Go ahead and click on those when you want to dive deeper into any of the topics we cover.

Exercises

Learning is a matter of practicing, which is why a starter file is provided with almost every lesson.

The final version of the exercise is also provided in case you want to check the result directly.

More about what’s in those zip files and how to use them soon.

Code

Each developer has a personal way of coding and I have mine. During the lesson, the code will follow my personal preferences. Do as you wish. If you want to refactor all the code, go ahead. You can even use a code beautifier that will automatically reformat your code.

Prerequisite 17:31

You need a computer on which you can install software and code. All the software we are going to use is free. Some course portions might vary depending on the OS, like the Terminal commands or some Blender shortcuts. I'll always provide the macOS and Windows versions.

This course is beginner-friendly, yet you do need to know JavaScript basics like variables, arrays, objects, loops, functions, and events.

You will also need a code editor. I recommend Visual Studio Code because it's a well-oiled editor with a broad community and frequent updates. However, you can use the editor that suits you. There will be a few instances when we install plugins, but again, it won't be a big deal, and you'll probably find corresponding plugins for your code editor.

We will also need Node.js to run our projects. Don't worry if you've never used it, we will install it together in the First Three.js Project lesson.

Another requirement is a modern browser with developer tools. I'll be using Chrome, but any modern browser with debugging tools should do. If you are not familiar with developer tools, I recommend using the same browser as me so that you can follow along more easily. At some point, we will install Chrome extensions, but those extensions are optional. Also, be careful with browsers that implement special security and privacy features like Brave. They might interfere with the output.

We will also learn how to use Blender. It's free 3D software that works on every primary OS, and it's just great. If you are curious, give it a try already.

You don't need to be good at maths. I'm terrible at it, and still, I manage to create cool 3D websites. Yes, being good at it would be a plus, but you can do without it, and I'll explain the formulas.

Finally, if you know nothing about Three.js, you're in the right place.

What to do if I'm stuck? 20:08

If you get stuck for whatever reason, don't worry, you're not alone.

Join the Discord

As a Three.js Journey student, you get access to a members-only Discord server. Go to threejs-journey.com/discord to join it, then follow the short onboarding.

There are currently thousands of members there including myself, and we will do our best to help you. In return, if you feel like helping others, that would be awesome and I would appreciate it a lot.

By the way, the link to join the members-only Discord will work only once, so make sure you join with the right account (I know some of you have a bunch of Discord accounts for some reason).

If you need to join the server later, you don’t need to go through the Three.js Journey website again. The link won’t work. Just open your Discord application and the Three.js Journey Discord server will be there on the left:

Post your issue

As for posting your issue, there is one channel per lesson. Please use the appropriate one, and if your question is not related to a lesson (like if it’s for a personal project), use the #general-questions channel.

Be brief and concise.

If you have screenshots or videos, that’s even better, but most of the time, you’ll need to share some code. In Discord, you can wrap your code with triple backticks.

Here’s an example:

```js
const hello = 'there'
```

Adding the language (js in this case) will add syntax highlighting. This will greatly help us help you.

You can also send a zip of your project, which is even better, because we can run it and see the issue for ourselves. Just make sure to remove the node_modules/ folder before zipping it, as it's very heavy and we can reinstall it.

Post your work 21:57

You don’t have to finish the whole course to create nice projects. After a few lessons, you’ll see that you’ll have sufficient knowledge to venture out on your own and have some fun.

But what is it worth if you can’t share it with the world? Well, good news, in the Go Live lesson, you’ll learn how to put your projects online for free.

As for getting some attention, you can post on X with the #threejsJourney hashtag or tag me (@bruno_simon) so that I can see what you do. If I like it, I’ll repost it and give you some extra visibility.

You can also post on the Discord server which is ideal if you want some feedback. Go on the Three.js Journey Discord server and post on the #students-work channel.

Certificate 22:56

Finally, there is a certificate of completion for this course.

But don’t think I’ll offer it to you just for watching all the videos. You’ll have to answer a quiz for almost every lesson. You can access the quiz from the lesson page (button right below the player) or from the pop-in that opens at the end of the lesson.

All quizzes are also accessible from your account page.

You need to have registered to Three.js Journey in order to see the quizzes.

If you answer incorrectly, you’ll have to wait 5 minutes before trying again. Enough time for you to go gather the information in order to answer successfully.

The final certificate looks something like this: https://threejs-journey.com/certificate/view/17

You can share it and even print it.

Conclusion 24:01

It was quite a long introduction, but I wanted to make sure you start on a good foot.

Now is the time to learn Three.js.

Next lesson

What is WebGL and why use Three.js

How to use it 🤔

  • Download the
  • Unzip it
  • Open your terminal and go to the unzip folder
  • Run npm install to install dependencies
    (if your terminal warns you about vulnerabilities, ignore it)
  • Run npm run dev to launch the local server
    (project should open on your default browser automatically)
  • Start coding
  • The JS is located in src/script.js
  • The HTML is located in src/index.html
  • The CSS is located in src/style.css

If you get stuck and need help, join the members-only Discord server:

Discord