All language subtitles for 1. Setting up a simple THREE.js page using modules--- [ FreeCourseWeb.com ] ---

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (SoranĂ®)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:03,810 --> 00:00:09,190 A 3D primer setting up a simple 3D page using modules. 2 00:00:10,110 --> 00:00:15,660 Now it's time to download the resources for the course, either use the resources button in the right 3 00:00:15,660 --> 00:00:24,030 sidebar and choose, learn WebEx, our zip file or go to the set up address and clone or download the 4 00:00:24,030 --> 00:00:24,680 repo. 5 00:00:25,290 --> 00:00:28,980 If you're unfamiliar with it, then let me urge you to use it. 6 00:00:29,400 --> 00:00:34,800 It's a version control system allowing a developer to track changes to their code. 7 00:00:35,220 --> 00:00:41,850 I find it easier to use with sorcery a free gift client available for Mac and Windows. 8 00:00:42,570 --> 00:00:46,950 Just download the app and then use the new clone from your option. 9 00:00:47,700 --> 00:00:54,300 The address by clicking this button on GitHub, you select a folder where the repo will be downloaded 10 00:00:54,300 --> 00:00:56,760 to and then you ready to go. 11 00:00:57,480 --> 00:01:02,820 I recommend also downloading the 3GS repo, which is available at this address. 12 00:01:03,930 --> 00:01:10,740 The course resources include build one one seven of 3GS and some essential extra files for the course 13 00:01:10,750 --> 00:01:11,610 examples. 14 00:01:12,150 --> 00:01:19,230 But as you create your own apps, I recommend updating your 3D repo and then starting with the latest 15 00:01:19,230 --> 00:01:19,800 build. 16 00:01:20,760 --> 00:01:31,110 3D comes in three flavors playing JavaScript module JavaScript and TypeScript the 3D WebEx are examples. 17 00:01:31,110 --> 00:01:36,660 All use the modules version and so we're going to use that approach throughout the course. 18 00:01:36,900 --> 00:01:41,850 If you're looking at the folder where you've downloaded our clone the resources, you'll see that there's 19 00:01:41,850 --> 00:01:48,960 a star folder and a complete folder to work along with the course, you need to use the version in the 20 00:01:48,960 --> 00:01:50,150 star folder. 21 00:01:50,820 --> 00:01:54,660 If you have in trouble, then go ahead and look at the complete folder. 22 00:01:54,930 --> 00:01:58,620 The problem is almost certainly a typo you can't view. 23 00:01:58,620 --> 00:02:06,060 You were just by clicking on an HTML file that will not work for 99 percent of the examples in the course 24 00:02:06,810 --> 00:02:12,870 of WebEx are examples must be delivered to the browser using https. 25 00:02:13,290 --> 00:02:15,630 This secure protocol is mandatory. 26 00:02:16,380 --> 00:02:22,530 I'm assuming at this stage you've set up your secure website to view your development code from following 27 00:02:22,530 --> 00:02:24,600 the links in the article in Section one. 28 00:02:25,500 --> 00:02:32,070 The examples in this cause can all be viewed in a desktop browser by using the web browser, emulator 29 00:02:32,370 --> 00:02:33,180 and web server. 30 00:02:33,180 --> 00:02:39,180 For Chrome, a useful Chrome extension is very much worth installing in setting it up. 31 00:02:39,360 --> 00:02:41,700 As outlined in the article in Section one. 32 00:02:42,360 --> 00:02:45,260 Just point the choose folder at the root of your website. 33 00:02:45,630 --> 00:02:48,930 Press the blue link and you can view and debug your work. 34 00:02:49,260 --> 00:02:55,980 But if you are testing on multiple devices and assessing the user experience, for most users, a remote 35 00:02:55,980 --> 00:02:57,600 server is the best solution. 36 00:02:58,350 --> 00:03:00,060 OK, let's open the file. 37 00:03:00,240 --> 00:03:05,700 Indexed our e-mail in the folder, start lecture to underscore one. 38 00:03:05,940 --> 00:03:12,090 This is already set up for you and each example in the course is going to use pretty much the same approach. 39 00:03:12,840 --> 00:03:17,130 The index page will define a script, tag the set to type module. 40 00:03:17,580 --> 00:03:25,290 It will import the app class from the file update gigas in the same folder as the indexed HTML file 41 00:03:25,800 --> 00:03:28,230 and in the DOM content loaded event. 42 00:03:28,650 --> 00:03:31,440 A new instance of the app class will be initialized. 43 00:03:32,160 --> 00:03:38,550 The window object will have a property called up set to this instance to facilitate debugging as will 44 00:03:38,550 --> 00:03:40,210 inevitably be necessary. 45 00:03:41,040 --> 00:03:43,820 Now let's look at the App Digest file. 46 00:03:44,580 --> 00:03:48,480 This is an essentially empty class in this template. 47 00:03:48,480 --> 00:03:55,170 I have imported the entire 3D library which is stored in the file Lib's three three modules. 48 00:03:55,170 --> 00:03:56,040 Dargis. 49 00:03:56,490 --> 00:04:01,400 This is the same file you'll find in the 3D repo in the build folder. 50 00:04:02,100 --> 00:04:10,350 I also import, albeit controls from Lib's three JSM or controls Dargis in the 3D library. 51 00:04:10,530 --> 00:04:17,490 You would find this file in the examples JSM controls folder because the course resources of a different 52 00:04:17,490 --> 00:04:19,950 folder structure to the 3D library. 53 00:04:20,340 --> 00:04:26,820 The resources version has a different path specified for the relative path to the three module JS file. 54 00:04:27,480 --> 00:04:33,050 This applies to several of the files in the resources led three folder, which all come from the 3D 55 00:04:33,060 --> 00:04:33,600 library. 56 00:04:34,290 --> 00:04:41,160 When you use modules, the import from path must be an absolute or relative path from the file to the 57 00:04:41,160 --> 00:04:42,150 import module. 58 00:04:42,720 --> 00:04:48,810 So in the apgar's you need to go up to folders to reach the root of the resources, then lock in the 59 00:04:48,810 --> 00:04:53,670 Libs three folder to find the file three module Dargis. 60 00:04:54,420 --> 00:05:00,600 A JavaScript class file is defined with a name and then the code inside curly braces. 61 00:05:01,440 --> 00:05:02,640 The constructor method is. 62 00:05:03,220 --> 00:05:09,850 Whenever a new instance of this class is created, the constructor method may take any number of parameters 63 00:05:09,880 --> 00:05:10,540 or none. 64 00:05:10,850 --> 00:05:11,830 Hey, we have none. 65 00:05:12,640 --> 00:05:19,300 The template is set up to create a development and append it to the body of the document is also set 66 00:05:19,300 --> 00:05:24,490 up to call the resize method of this class whenever there's a window resize event. 67 00:05:24,910 --> 00:05:31,760 Scope is very important when using the key word this inside the constructor method for the app class. 68 00:05:32,050 --> 00:05:37,380 This refers to an instance of the app to call methods of the class. 69 00:05:37,390 --> 00:05:39,820 We use this then the method name. 70 00:05:40,240 --> 00:05:46,500 If we do not bind this to the method, call for an event line inside the function. 71 00:05:46,780 --> 00:05:48,460 This would have a different scope. 72 00:05:48,850 --> 00:05:51,100 It would refer not to the app instance. 73 00:05:51,460 --> 00:05:55,330 Instead it will be the instant the had the event listener added. 74 00:05:55,660 --> 00:06:03,820 In this case, the window by adding bindis, it ensures that this inside the class method is the app, 75 00:06:03,970 --> 00:06:05,020 as I expected. 76 00:06:05,940 --> 00:06:10,530 Now we are poised to enter our first code to display some 3-D content. 77 00:06:11,280 --> 00:06:17,730 Let's take a break and come back in the next video, ready to start typing and testing tea in a jiffy. 8004

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.