3D Basics

3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€61.47
List Price:  €87.82
You save:  €26.35
£52.60
List Price:  £75.16
You save:  £22.55
CA$96.89
List Price:  CA$138.43
You save:  CA$41.53
A$109.61
List Price:  A$156.59
You save:  A$46.98
S$91.80
List Price:  S$131.16
You save:  S$39.35
HK$543.02
List Price:  HK$775.77
You save:  HK$232.75
CHF 57.75
List Price:  CHF 82.51
You save:  CHF 24.75
NOK kr729.64
List Price:  NOK kr1,042.39
You save:  NOK kr312.75
DKK kr458.96
List Price:  DKK kr655.69
You save:  DKK kr196.72
NZ$117.11
List Price:  NZ$167.31
You save:  NZ$50.19
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,502.97
List Price:  ৳12,147.63
You save:  ৳3,644.65
₹5,968.05
List Price:  ₹8,526.15
You save:  ₹2,558.10
RM306.06
List Price:  RM437.25
You save:  RM131.19
₦113,103.14
List Price:  ₦161,582.84
You save:  ₦48,479.70
₨19,657.95
List Price:  ₨28,083.99
You save:  ₨8,426.03
฿2,340.32
List Price:  ฿3,343.46
You save:  ฿1,003.14
₺2,682.01
List Price:  ₺3,831.60
You save:  ₺1,149.59
B$401.01
List Price:  B$572.90
You save:  B$171.88
R1,309.52
List Price:  R1,870.82
You save:  R561.30
Лв120.38
List Price:  Лв171.98
You save:  Лв51.60
₩100,465.95
List Price:  ₩143,528.93
You save:  ₩43,062.98
₪255.41
List Price:  ₪364.89
You save:  ₪109.47
₱3,954.74
List Price:  ₱5,649.88
You save:  ₱1,695.13
¥9,970.18
List Price:  ¥14,243.72
You save:  ¥4,273.54
MX$1,371.19
List Price:  MX$1,958.93
You save:  MX$587.73
QR254.84
List Price:  QR364.07
You save:  QR109.23
P956.04
List Price:  P1,365.84
You save:  P409.79
KSh9,056.70
List Price:  KSh12,938.70
You save:  KSh3,882
E£3,566.46
List Price:  E£5,095.17
You save:  E£1,528.70
ብር9,391.24
List Price:  ብር13,416.63
You save:  ብር4,025.39
Kz63,830.88
List Price:  Kz91,190.88
You save:  Kz27,360
CLP$65,983.99
List Price:  CLP$94,266.88
You save:  CLP$28,282.89
CN¥510.01
List Price:  CN¥728.62
You save:  CN¥218.61
RD$4,151.63
List Price:  RD$5,931.15
You save:  RD$1,779.52
DA9,261.20
List Price:  DA13,230.85
You save:  DA3,969.65
FJ$158.20
List Price:  FJ$226.02
You save:  FJ$67.81
Q539.06
List Price:  Q770.12
You save:  Q231.05
GY$14,641.15
List Price:  GY$20,916.83
You save:  GY$6,275.67
ISK kr8,908.32
List Price:  ISK kr12,726.72
You save:  ISK kr3,818.40
DH647.77
List Price:  DH925.43
You save:  DH277.65
L1,209.12
List Price:  L1,727.39
You save:  L518.27
ден3,782.50
List Price:  ден5,403.80
You save:  ден1,621.30
MOP$559.32
List Price:  MOP$799.06
You save:  MOP$239.74
N$1,299.68
List Price:  N$1,856.77
You save:  N$557.08
C$2,575.32
List Price:  C$3,679.18
You save:  C$1,103.86
रु9,558.70
List Price:  रु13,655.87
You save:  रु4,097.17
S/258.79
List Price:  S/369.72
You save:  S/110.92
K285.39
List Price:  K407.72
You save:  K122.32
SAR262.53
List Price:  SAR375.06
You save:  SAR112.53
ZK1,985.74
List Price:  ZK2,836.90
You save:  ZK851.15
L305.98
List Price:  L437.14
You save:  L131.15
Kč1,537.76
List Price:  Kč2,196.89
You save:  Kč659.13
Ft25,057.28
List Price:  Ft35,797.65
You save:  Ft10,740.36
SEK kr673.28
List Price:  SEK kr961.88
You save:  SEK kr288.59
ARS$81,431.23
List Price:  ARS$116,335.31
You save:  ARS$34,904.08
Bs483.57
List Price:  Bs690.85
You save:  Bs207.27
COP$300,992.45
List Price:  COP$430,007.65
You save:  COP$129,015.19
₡35,192.79
List Price:  ₡50,277.57
You save:  ₡15,084.78
L1,814.26
List Price:  L2,591.91
You save:  L777.65
₲559,805.85
List Price:  ₲799,756.92
You save:  ₲239,951.07
$U2,934.99
List Price:  $U4,193.03
You save:  $U1,258.03
zł263.17
List Price:  zł375.98
You save:  zł112.80
Already have an account? Log In

Transcript

When dealing with 3d we've got a coordinate system is three directions. And using Web GL, which is what three GS has, as its basis, we find the coordinates are y going upwards. Increasing increase is going up which x increases to the right, and Zed increases out out of the screen. That's assuming that the camera is pointing directly down to the Zed axis. We put some numbers to this. I add in a grid, we can define a point, an individual point where its position is five along the x axis for up the wire Access on three along these access, so we can define that point, x is five, y is four, Zed is three, if we introduce two more points, so that's our original point.

And now we have a point over here where x is zero, y is four, and that is zero points over here where x is five, y is four, and Zed is still zero. And we can introduce a triangle defined by those three points, often referred to as vertices. We can take the idea of a single triangle and extend it out. So now we have a cube here, where we have eight vertices and we have seemingly six sides to this, but each side is going to be two triangles, there will be 12 triangles in total. If we if we number the vertices v one v two v three, V four, etc. Then we can define the triangle as v one v two v three.

And the other part of this top face will be v one v three v four. In order to create lighting calculations, we have something that sticks out to every one of our triangles, and often every one of our vertices and this is a normal a normal life. To calculate the direction that lights coming in, and use this normal to calculate the values as a color should be for each pixel in our rendered screen. So we get to the ability to be able to create a rotating cube, which we'll look at doing in the next section. If we convert that to wireframe, you can see that the cube is actually made up of triangles. So at its heart, everything we ever render will be a triangle.

The rotation of this and the position this is all calculated using matrices. Well, thankfully, you won't have to worry about that low level of mathematics. When you're using the three GS library. It makes it much simpler than that.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.