簡略風格3D model的建立
- Minecraft Character in WebGL - Learning Three.js
- 再度重讀這篇,對於3D model的建立,決定捨棄mrddob的教學直接從這篇與tQuery和jQuery著手
- Boilerplate for Three.js - Learning Three.js
- 這篇是較舊的文章,但是裡面那個20多分鐘左右的影片還是可以看一看,簡單來說Boilerplate就是把你寫WebGL的環境給包好,讓你可以快速開始,省去寫一堆初始化環境的code
- Boilerplate Builder for Three.js - Learning Three.js
Dash
- Every time you move your mouse, click something, mouse over something, press a key or scroll, your browser fires off an event
下面這寫法是jQuery的寫法
$("button").on("click", function(){
alert("clicked!")
});
- 在這例子中"button"就是我們所需要的 CSS element,而$("button")即是說選擇所有的button,這個$就是指選擇所有,同理也可用於$("h1")或$("p")
- on()設置了一個event listener,on( , )第一個argument是type of event to listen to,即你要呼叫的事件類型,第二個argument是你要對應的處理方式
W3School
HTML DOM
- HTML DOM methods are actions you can perform (on HTML Elements)
- HTML DOM properties are values (of HTML Elements) that you can set or change
- In the DOM, all HTML elements are defined as objects.
沒有留言:
張貼留言