Learn three.js

To learn three.js, you must first understand the following;

  1. Scene (Scene): All elements in three.js must be added to a scene to be displayed.
  2. Camera: The camera determines the perspective and visible area of ​​the scene. three.js supports multiple camera types, including PerspectiveCamera and OrthographicCamera.
  3. Renderer (Renderer): The renderer combines the scene and the camera to generate the final image. three.js supports multiple renderer types, including CanvasRenderer, WebGLRenderer, and SVGRenderer.
  4. Geometry: Geometry is an entity in three-dimensional space, consisting of vertices and faces. Three.js has a variety of built-in geometries, such as BoxGeometry, SphereGeometry, and CylinderGeometry, and also supports custom geometries.
  5. Material: The material determines the appearance and properties of the surface of the geometry, such as color, texture, reflection, etc. Three.js has a variety of built-in materials, such as MeshBasicMaterial, MeshLambertMaterial, and MeshPhongMaterial, and also supports custom materials.
  6. Mesh: Mesh is a combination of geometry and material, and is the basic unit displayed in the scene. Mesh objects in three.js can be created by adding geometry and materials.
  7. Light: The light source determines the lighting effect in the scene, such as color, intensity, position, etc. three.js supports a variety of light source types, including AmbientLight, PointLight and DirectionalLight, etc.
  8. Animation: Animation makes the mesh move or deform in the scene. three.js supports a variety of animation types, including Tween and AnimationMixer, etc.
  9. Controller: The controller can be used to operate the camera and control the interaction in the scene. three.js supports a variety of controller types, including OrbitControls, TrackballControls and FlyControls, etc.

Those who want Yuque notes can first apply for access through the link below, and I will give you permission

https://www.yuque.com/g/taoli-zl7vk/dx48ww/collaborator/join?token=7PRTaeYQi3iGOA40# 《Three.js》

Guess you like

Origin blog.csdn.net/w418856/article/details/130811133