In three.js there are several types of lights that we can choose from. These options exist so that we can simulate various kinds of lighting scenarios. One of the simplest light types is a point light. A point light gets emitted from a single point in space in all directions. Think of a light bulb as an example of a point light. You can add a point light to the scene by calling the PointLight() function. It can be hard to visualize the position of the lights. To solve for that issue you can add a sphere geometry under the light to see where the light currently is.
- [Instructor] In Three.js there are several types of lights…that we can choose from.…These options exist so that we can assimilate various kinds…of lighting scenarios.…One of the simplest light types is PointLight.…A PointLight is emitted from a single point in space,…in all directions.…Think of a light bulb as an example of a PointLight.…Let's start off by adding a PointLight to the scene.…I will build a dedicated function for creating PointLights.…So here I will be creating a function…that is similar to the getPlane function…but that is going to be creating PointLights.…
It's going to be working with a single argument…which is going to be the intensity for the PointLight.…A PointLight takes two arguments.…One of them is the color of the lights…which I will be using white color…and the second's argument is going to be the intensity…which is going to be received from the function arguments.…Now that I have this function,…I can call it inside the init function…to be able to create the PointLights…with the intensity of one…
- 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
Adobe Animate CC: HTML5 Canvas and WebGLwith Joseph Labrecque1h 36m Intermediate
HTML5: Graphics and Animation with Canvaswith Joe Marini3h 7m Intermediate
1. Building a Simple Scene
2. Three.js Scene Object
5. Materials and Textures
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.Cancel
Take 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.