You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can console.log(THREE) variable to log what global THREE does. It a object of collection of all the features & attributes.
console.log(THREE)
Get start with elements
To run a simple app, we need to care for 4 elements subjects:
Elements
1. A scene that will contain objects
Scene là 1 hình thái bao gồm ánh sáng, các đối tượng, các model chứa trong đó
2. Some objects
Object có thể là 1 hình học được vẽ ra(primitive geometries), các model được import vào, các vật rất nhỏ (particles), ánh sáng đặc biệt,..
3. A camera
Camera là điểm nhìn từ mắt tới vật thể
4. A renderer
Renderer là bước cuối để hiển thị scene
A scene that will contain objects: Scene là 1 hình thái bao gồm ánh sáng, các đối tượng, các model chứa trong đó
constSCENE=newTHREE.Scene()
Some objects: Object có thể là 1 hình học được vẽ ra(primitive geometries), các model được import vào, các vật rất nhỏ (particles), ánh sáng đặc biệt,..
Object 3d (by code - not import) normally created name Mesh, combination of 2 things: geometry (the shape) & material (how it looks - a skin)