<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-27139364</id><updated>2018-09-17T12:51:08.737+08:00</updated><category term="Muzik"/><category term="生活手扎"/><category term="一首"/><category term="精神病院"/><category term="Movie"/><category term="chordeenid"/><category term="時空交錯"/><category term="trance"/><category term="過往小時候"/><category term="WinPC"/><category term="Houdini"/><category term="Reading"/><category term="Classic"/><category term="Look &#39;n&#39; Feel"/><category term="Digital"/><category term="獨白"/><category term="Mac OS X"/><category term="Design"/><category term="Game"/><category term="Programming"/><category term="Maya"/><title type='text'>Chordee&#39;s Blog - 夜裡的彩虹</title><subtitle type='html'>這一直都不是一個我們想怎樣就怎樣的世界...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>792</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-27139364.post-6096723094723476899</id><published>2017-09-06T23:07:00.000+08:00</published><updated>2017-09-06T23:07:27.452+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Houdini"/><category scheme="http://www.blogger.com/atom/ns#" term="Maya"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>讀寫 Maya geoCache（nPartcle Cache）用的 python 函式庫</title><content type='html'>Github：&lt;br /&gt;&lt;a href=&quot;https://github.com/chordee/mayaGeoCache&quot;&gt;https://github.com/chordee/mayaGeoCache&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;一開始只是寫給 Houdini 用的工具，後來因為每次的需求逐步改進，所以 code 很醜，class 的安排也不是最佳。到現在也還是只能用在 one file per frame。&lt;br /&gt;&lt;br /&gt;事到如今已經有了 Houdini Engine 所以用到的機會越來越少，頂多就是用在 nCloth 或是 nHair 轉換比較方便，或是從外部讀寫 Maya nParticle cache。因此以後要改寫的機會應該也不多。&lt;br /&gt;&lt;br /&gt;最近有點時間就整理出來成為獨立的 python 函式庫。python 2.7 with numpy 是基本需求。功能其實也就是把 cache 的資料轉換成 numpy list，可讀可寫，這樣而已。&lt;br /&gt;&lt;br /&gt;寫入的時候一定要小心覆蓋危機！！&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/6096723094723476899/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=6096723094723476899&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/6096723094723476899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/6096723094723476899'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2017/09/maya-geocachenpartcle-cache-python.html' title='讀寫 Maya geoCache（nPartcle Cache）用的 python 函式庫'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-5956877475556053429</id><published>2017-09-04T22:17:00.000+08:00</published><updated>2017-09-04T22:18:17.048+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Houdini"/><title type='text'>利用  Mantra 為 Packed Rigid Body 破碎增加細節</title><content type='html'>當破碎完成之後，看著那乾淨俐落的斷面大部分的人都會想增加細節。&lt;br /&gt;&lt;br /&gt;雖然 Houdini 已經有很多工具可以對模型在 cache 之後轉換成更精細的模型，不過徒增的面數還是讓人心生不快。但是由 Mantra 算圖的時候便可借助 Houdini 本身強悍的 vop 工具在算圖階段達成較一般 displacement 更為複雜的變形。&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://drive.google.com/file/d/0B-6Fb3PMT1bFMThjNG90RDllZkk/view?usp=sharing&quot;&gt;Hip File&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-XMtChJc7RqQ/Wa1SZY72jzI/AAAAAAAAoyc/3uUiRHnKPYwvb4haJI0VRK7vaMF4VbK3ACLcBGAs/s1600/Snipaste_2017-09-04_18-16-26.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://2.bp.blogspot.com/-XMtChJc7RqQ/Wa1SZY72jzI/AAAAAAAAoyc/3uUiRHnKPYwvb4haJI0VRK7vaMF4VbK3ACLcBGAs/s400/Snipaste_2017-09-04_18-16-26.png&quot; width=&quot;400&quot; height=&quot;252&quot; data-original-width=&quot;1231&quot; data-original-height=&quot;776&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;這裡的 displacement 已經不單單只是傳統的 Normal 方向 displacement，或是 vector displacement。在 Shading 的處理上更可以藉由外部的資訊去對 UV 做校正讓 displacement 產生後的貼圖避免受到拉扯。&lt;br /&gt;&lt;br /&gt;在 Packed Primitives 的 Rigid Body 模擬已經不用像以往要自己準備 matrix 資訊，Packed 之後所產的任何位移旋轉資訊都已經藏在 primitive 本身當中。&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-qOJmCg3NRCE/Wa1TfaannsI/AAAAAAAAoyk/QKai7QtYxksyGitd_YxtSqX4rQZEBdAgwCLcBGAs/s1600/Snipaste_2017-09-04_18-17-38.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://1.bp.blogspot.com/-qOJmCg3NRCE/Wa1TfaannsI/AAAAAAAAoyk/QKai7QtYxksyGitd_YxtSqX4rQZEBdAgwCLcBGAs/s400/Snipaste_2017-09-04_18-17-38.png&quot; width=&quot;400&quot; height=&quot;264&quot; data-original-width=&quot;1249&quot; data-original-height=&quot;824&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;只是要把他拿出來需要比較特殊的方式&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-Z4EL4IOeTyg/Wa1Tq1I_dxI/AAAAAAAAoyo/nxrHouGmxnAynjqZ_E8pZlc7eOmfd7WbwCLcBGAs/s1600/Snipaste_2017-09-04_18-18-30.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://3.bp.blogspot.com/-Z4EL4IOeTyg/Wa1Tq1I_dxI/AAAAAAAAoyo/nxrHouGmxnAynjqZ_E8pZlc7eOmfd7WbwCLcBGAs/s400/Snipaste_2017-09-04_18-18-30.png&quot; width=&quot;400&quot; height=&quot;184&quot; data-original-width=&quot;1073&quot; data-original-height=&quot;493&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;unpack 的時候可以把這些預先提出的屬性 transfer 到展開的模型上，再來就可以利用這個 matrix 屬性來處理模型，比方說將 point position 乘上 invert 的 matrix 就可以將模型移回當初 packed 之前的位置。&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-URlvv51gElU/Wa1UljY9hlI/AAAAAAAAoyw/xTGGlWMgWnI366tWgqOLkw4Mx3rFBFv7QCLcBGAs/s1600/Snipaste_2017-09-04_18-19-16.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://2.bp.blogspot.com/-URlvv51gElU/Wa1UljY9hlI/AAAAAAAAoyw/xTGGlWMgWnI366tWgqOLkw4Mx3rFBFv7QCLcBGAs/s400/Snipaste_2017-09-04_18-19-16.png&quot; width=&quot;400&quot; height=&quot;195&quot; data-original-width=&quot;904&quot; data-original-height=&quot;440&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;然後再乘上 matrix 又可以移回去。對！這聽起來就是一個我轉回去又轉回來的概念，就是這麼無聊。只是如果我們轉回去之後做些處理或是變形再轉回來呢？如此一來這些變形產生的位移都會是相對於當初的位置，將不再受到任何動態的影響。至於這樣的手法也可以在 Houdini 的 Shading Network 中執行，利用 micropolygon 的細分狀態，甚至可以在很少面數的情況下產生充滿細節的 displacement。&lt;br /&gt;&lt;br /&gt;Houdini 16 的材質系統已經不在 shop 底下，但是依然是 vop 系統中的一環。在 material builder 骨子裡還是本來的 vop network。&lt;br /&gt;&lt;br /&gt;在處理之前需要準備幾個模型去做校正和藉由他們取得資訊，雖然也可以利用屬性，不過一方面是懶惰另一方面是不想弄得太文謅謅，就用模型吧！至於模型就只需要一個 packed 之前的單 frame 模型。有以下三種：&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-hVVNq3EjG9c/Wa1cpcvl0AI/AAAAAAAAozY/BL2cnrf62WwOgkQMqdYRTXi9orT3-xw7ACLcBGAs/s1600/Snipaste_2017-09-04_13-51-27.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://2.bp.blogspot.com/-hVVNq3EjG9c/Wa1cpcvl0AI/AAAAAAAAozY/BL2cnrf62WwOgkQMqdYRTXi9orT3-xw7ACLcBGAs/s400/Snipaste_2017-09-04_13-51-27.png&quot; width=&quot;244&quot; height=&quot;400&quot; data-original-width=&quot;616&quot; data-original-height=&quot;1010&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;outside 就是本來的切碎之前的模型，一方面是要吃他的 UV，另一方面是希望用它來判斷距離，在材質上希望可以做出薄薄一層厚度的感覺。&lt;br /&gt;boundary 則是因為想要做只有一個軸向的變形，既然如此在這兩邊要將變形限制住，希望模型的四周算出來還是平整的，外表跟本來的輪廓一樣。&lt;br /&gt;inside 就是真正會處理 displacement 的地方，所以也特地取出來，也是要利用距離來對 displacement 作權重的變化。&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://2.bp.blogspot.com/-rXZdwDC_b84/Wa1WJDCJ4dI/AAAAAAAAoy8/2Q5DT12FohQH1KN3e-IvQVMKESGJGqF1gCLcBGAs/s1600/Snipaste_2017-09-04_18-33-14.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://2.bp.blogspot.com/-rXZdwDC_b84/Wa1WJDCJ4dI/AAAAAAAAoy8/2Q5DT12FohQH1KN3e-IvQVMKESGJGqF1gCLcBGAs/s400/Snipaste_2017-09-04_18-33-14.png&quot; width=&quot;400&quot; height=&quot;265&quot; data-original-width=&quot;1066&quot; data-original-height=&quot;707&quot; /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;將斷面和本來的外表用兩個材質做區隔，往內部深入時偷偷保留一層厚度。&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-2BmY5d5p6Bk/Wa1YByq-nuI/AAAAAAAAozI/msr54HGC49AuN4JyAzYgVuOsl2zTGgEzACLcBGAs/s1600/Snipaste_2017-09-04_18-42-32.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://1.bp.blogspot.com/-2BmY5d5p6Bk/Wa1YByq-nuI/AAAAAAAAozI/msr54HGC49AuN4JyAzYgVuOsl2zTGgEzACLcBGAs/s400/Snipaste_2017-09-04_18-42-32.png&quot; width=&quot;400&quot; height=&quot;160&quot; data-original-width=&quot;1600&quot; data-original-height=&quot;641&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;變形的時候刻意只用的一個軸向，其實不一定要這樣做，但這是做木材斷裂的時候最常用的手段。&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-3MlDRR4ZNOY/Wa1YF489kKI/AAAAAAAAozM/K6AwJ3t_YPs-LddV1ALmHyXg_LD9XLhngCLcBGAs/s1600/Snipaste_2017-09-04_18-46-33.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;https://3.bp.blogspot.com/-3MlDRR4ZNOY/Wa1YF489kKI/AAAAAAAAozM/K6AwJ3t_YPs-LddV1ALmHyXg_LD9XLhngCLcBGAs/s400/Snipaste_2017-09-04_18-46-33.png&quot; width=&quot;400&quot; height=&quot;190&quot; data-original-width=&quot;1585&quot; data-original-height=&quot;751&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;雖然變形了模型，但還是利用本來的模型對 UV 做了校正，所以只要外表的輪廓一樣，UV 就會被保持住。&lt;br /&gt;&lt;br /&gt;用 displacement 的時候 mantra 算圖的 Z-Importance 必須要提高，因為 Mantra 的 displacement 會在 Z 軸出現類似 LOD 處理（類似），如果不夠就很容易發生閃爍。</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/5956877475556053429/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=5956877475556053429&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/5956877475556053429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/5956877475556053429'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2017/09/mantra-packed-primitives.html' title='利用  Mantra 為 Packed Rigid Body 破碎增加細節'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://2.bp.blogspot.com/-XMtChJc7RqQ/Wa1SZY72jzI/AAAAAAAAoyc/3uUiRHnKPYwvb4haJI0VRK7vaMF4VbK3ACLcBGAs/s72-c/Snipaste_2017-09-04_18-16-26.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-5661453158134971238</id><published>2017-01-02T01:35:00.002+08:00</published><updated>2017-01-02T01:35:50.999+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chordeenid"/><title type='text'>#53</title><content type='html'>&lt;br /&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-lxWMscAxWjA/WGk3Ju7xWbI/AAAAAAAAl1s/ZpQcv44xnZI_HLfzQgHGTBxtTpP0n78CwCLcB/s1600/22207534604_e8c7169194_o.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://3.bp.blogspot.com/-lxWMscAxWjA/WGk3Ju7xWbI/AAAAAAAAl1s/ZpQcv44xnZI_HLfzQgHGTBxtTpP0n78CwCLcB/s400/22207534604_e8c7169194_o.jpg&quot; width=&quot;400&quot; height=&quot;267&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;兩年嘛～也還好&lt;br /&gt;感覺時間真的越跑越快&lt;br /&gt;只看這兩年，有點巨變&lt;br /&gt;但是回首十年比起來，又算不上什麼&lt;br /&gt;&lt;br /&gt;我好像越飄越遠了&lt;br /&gt;只能回來這裡找到回去的路&lt;br /&gt;努力去想起自己到底是怎樣的人&lt;br /&gt;&lt;br /&gt;『過去的就過去了』&lt;br /&gt;我總是這樣告訴自己&lt;br /&gt;但最近有一種走在莫比烏斯環上的感覺&lt;br /&gt;我不懂這到底是什麼宿命，還是某種我始終必須面對的問題&lt;br /&gt;以往的每一次我都選擇逃走&lt;br /&gt;上天好像真的知道我怕什麼&lt;br /&gt;擺明衝著我來，一次比一次更艱難&lt;br /&gt;&lt;br /&gt;我知道這次最後還是逃得掉&lt;br /&gt;只是在踏出最後一步之前猶豫了&lt;br /&gt;一步之遙，我卻在思考&lt;br /&gt;「媽的！要是還有下次怎麼辦？還是乾脆這次回頭送死算了？」&lt;br /&gt;&lt;br /&gt;可惡，一定要從這裡滿坑滿谷的隱喻之中把解藥找出來...&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/5661453158134971238/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=5661453158134971238&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/5661453158134971238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/5661453158134971238'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2017/01/53.html' title='#53'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://3.bp.blogspot.com/-lxWMscAxWjA/WGk3Ju7xWbI/AAAAAAAAl1s/ZpQcv44xnZI_HLfzQgHGTBxtTpP0n78CwCLcB/s72-c/22207534604_e8c7169194_o.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-8427234085414321751</id><published>2016-12-26T02:40:00.001+08:00</published><updated>2016-12-26T02:40:12.828+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Muzik"/><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>Lanu - Fly Away feat. Melanie Pain</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/0Loue1j4_sY&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/8427234085414321751/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=8427234085414321751&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/8427234085414321751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/8427234085414321751'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2016/12/lanu-fly-away-feat-melanie-pain.html' title='Lanu - Fly Away feat. Melanie Pain'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/0Loue1j4_sY/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-1448584667748830688</id><published>2014-12-10T00:23:00.000+08:00</published><updated>2014-12-10T00:23:15.042+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chordeenid"/><category scheme="http://www.blogger.com/atom/ns#" term="生活手扎"/><title type='text'>#52</title><content type='html'>&lt;br /&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-n8G8zRW-PbE/VIcgo2FcaKI/AAAAAAAAWp4/Gh4MVAlB4KQ/s320/DSC_4116.jpg&quot; /&gt;&lt;br /&gt;&lt;br /&gt;女生聚在一起有時會聊到指甲光療&lt;br /&gt;這時候男生在旁邊就只能放空&lt;br /&gt;如果被拖去陪做指甲那更是慘絕人寰&lt;br /&gt;這可不是十幾分鐘就可以搞定的事&lt;br /&gt;人生就這樣浪費了&lt;br /&gt;&lt;br /&gt;這大概是今年初做過最莫名其妙的事&lt;br /&gt;還不止一次&lt;br /&gt;該怎麼說呢&lt;br /&gt;我突然能理解這種事是真的會上癮啊～&lt;br /&gt;太危險了 好險我懸崖勒馬&lt;br /&gt;&lt;br /&gt;不過那陣子咬指甲的惡習倒是完全被根絕</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/1448584667748830688/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=1448584667748830688&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/1448584667748830688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/1448584667748830688'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/12/52.html' title='#52'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-n8G8zRW-PbE/VIcgo2FcaKI/AAAAAAAAWp4/Gh4MVAlB4KQ/s72-c/DSC_4116.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-608029347813724227</id><published>2014-12-03T23:30:00.002+08:00</published><updated>2014-12-03T23:30:27.510+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chordeenid"/><title type='text'>#51</title><content type='html'>&lt;br /&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-CxiTwWLfAIU/VH8sM3AwN7I/AAAAAAAAWi8/1b-y86mySWw/s320/IMG_20141102_230820.jpg&quot; /&gt;&lt;br /&gt;&lt;br /&gt;當初也是對攝影狂熱&lt;br /&gt;用機械的組合捕捉一瞬間的美麗&lt;br /&gt;用很虛幻的方式保留感動&lt;br /&gt;結果變成一切的喜怒哀樂都是看照片&lt;br /&gt;&lt;br /&gt;「看看這張照片，那時我多開心」&lt;br /&gt;「看看這張照片，當時我哭的超徹底」&lt;br /&gt;&lt;br /&gt;什麼時候變得這麼膚淺&lt;br /&gt;在光圈與快門之間我到底失去多少東西&lt;br /&gt;&lt;br /&gt;還是老派點用心記住吧&lt;br /&gt;少了感情醞釀的刻劃，再好的照片留下的都只是遺憾&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/608029347813724227/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=608029347813724227&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/608029347813724227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/608029347813724227'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/12/51.html' title='#51'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-CxiTwWLfAIU/VH8sM3AwN7I/AAAAAAAAWi8/1b-y86mySWw/s72-c/IMG_20141102_230820.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-6978418195144102175</id><published>2014-11-01T00:21:00.001+08:00</published><updated>2014-11-01T00:22:03.009+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>Knife Party - Begin Again</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/168884491&amp;amp;auto_play=false&amp;amp;hide_related=false&amp;amp;show_comments=true&amp;amp;show_user=true&amp;amp;show_reposts=false&amp;amp;visual=true&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;Knife Party 難得這麼不 dubstep&lt;br /&gt;&lt;br /&gt;話說今年 dubstep 的風潮簡直急轉直下，衰敗的速度比起當年崛起真是有過之而無不及。大概全部都被所謂的 EDM 吃掉了，EDM 根本就電子音樂的黑洞嘛&lt;br /&gt;&lt;br /&gt;其實 EDM 到底是什麼真是有看沒有懂，大家都各說各話，我猜是一種概念吧...就像「潮」，明明就是一樣的東西但是在我身上就不潮！奇怪耶～我也想當潮男為什麼不行啊</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/6978418195144102175/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=6978418195144102175&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/6978418195144102175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/6978418195144102175'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/11/knife-party-begin-again.html' title='Knife Party - Begin Again'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-5006315200944388020</id><published>2014-10-01T23:03:00.001+08:00</published><updated>2014-10-01T23:03:15.388+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>Zircon - Across the Ocean</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/103589795&amp;amp;auto_play=false&amp;amp;hide_related=false&amp;amp;show_comments=true&amp;amp;show_user=true&amp;amp;show_reposts=false&amp;amp;visual=true&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/5006315200944388020/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=5006315200944388020&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/5006315200944388020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/5006315200944388020'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/10/zircon-across-ocean.html' title='Zircon - Across the Ocean'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-8307111457146431826</id><published>2014-08-27T00:35:00.002+08:00</published><updated>2014-08-27T00:35:31.392+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>Porter Robinson - Sad Machine</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/149151252&amp;amp;auto_play=false&amp;amp;hide_related=false&amp;amp;show_comments=true&amp;amp;show_user=true&amp;amp;show_reposts=false&amp;amp;visual=true&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;每次聽這首都會讓我想起一開始的 Skrillex，那時候他還沒被 EDM 帶壞，也還沒變胖...&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/8307111457146431826/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=8307111457146431826&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/8307111457146431826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/8307111457146431826'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/08/porter-robinson-sad-machine.html' title='Porter Robinson - Sad Machine'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-1675375629016304257</id><published>2014-08-27T00:29:00.001+08:00</published><updated>2014-08-27T00:29:18.297+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>I See MONSTAS - Circles</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/161665785&amp;amp;auto_play=false&amp;amp;hide_related=false&amp;amp;show_comments=true&amp;amp;show_user=true&amp;amp;show_reposts=false&amp;amp;visual=true&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;Drum &amp; Bass&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/1675375629016304257/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=1675375629016304257&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/1675375629016304257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/1675375629016304257'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/08/i-see-monstas-circles.html' title='I See MONSTAS - Circles'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-8739867023076974464</id><published>2014-08-27T00:27:00.001+08:00</published><updated>2014-08-27T00:27:16.334+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>BT feat. Christian Burns - Paralyzed</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/164858378&amp;amp;auto_play=false&amp;amp;hide_related=false&amp;amp;show_comments=true&amp;amp;show_user=true&amp;amp;show_reposts=false&amp;amp;visual=true&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/8739867023076974464/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=8739867023076974464&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/8739867023076974464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/8739867023076974464'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/08/bt-feat-christian-burns-paralyzed.html' title='BT feat. Christian Burns - Paralyzed'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-1204224608911211095</id><published>2014-07-27T03:24:00.000+08:00</published><updated>2014-07-27T03:24:46.329+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Houdini"/><title type='text'>[memo] Houdini, Mantra, image plane...</title><content type='html'>&lt;br /&gt;Houdini Mantra 的 image plane 跟 Maya 裡的 image plane 根本不是同一件事。&lt;br /&gt;&lt;br /&gt;Houdini Mantra 的 image plane 其實就是一般 render engine 常見的 AOVs，也就是 Mental Ray 所謂的 render passes.&lt;br /&gt;&lt;br /&gt;Mantra Surface 使用了新的 Surface Model。裡面已經擺好預設的 parameter 可以使用，如果要對應到 Mental  Ray 常用的 render passes...&lt;br /&gt;&lt;br /&gt;Diffuse = direct_diffuse&lt;br /&gt;Specular = direct_reflect&lt;br /&gt;Reflection = indirect_reflect&lt;br /&gt;Refraction = direct_refract + indirect_refract&lt;br /&gt;&lt;br /&gt;Indirect = indirect_diffuse&lt;br /&gt;&lt;br /&gt;Diffuse Material Color = diffuse_color_noshading&lt;br /&gt;&lt;br /&gt;以上大概只有 diffuse_color_noshading 不在預設的 image plane 裡，也是因為只有它不在 Surface Model 中，所以一定要 Mantra Surface 才有辦法使用。&lt;br /&gt;&lt;br /&gt;Mantra 所謂的 specular 其實就是反射燈光，這是一個「批逼啊」的概念。反射折射前面加上 direct 都是直接和燈光有關，indirect 是間接就和物體有關。&lt;br /&gt;&lt;br /&gt;比較麻煩的是 Direct Irradiance，這東西我在 Surface Model 裡找不到，只能自己動手拆。&lt;br /&gt;&lt;br /&gt;走進 Houdini 的 shader 就像在玩全面啟動，一定要保持冷靜，切記！心若冰清天塌不驚。&lt;br /&gt;&lt;br /&gt;深呼吸，首先在 Mantra Surface 裡找到 Surface Model&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-BN-RjyIwmXw/U9PtII-uNpI/AAAAAAAAU4M/O_ibTUXhhB0/s1600/surfacemodel.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-BN-RjyIwmXw/U9PtII-uNpI/AAAAAAAAU4M/O_ibTUXhhB0/s400/surfacemodel.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;名字藍色的 Surface Model 代表可以再進去，但是如果要修改，請先滑鼠右鍵 -&gt; Allow Editing of Contents&lt;br /&gt;進去之後再找到 diffuse 區塊&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-HIIqvd9l9RQ/U9PtO-0DdfI/AAAAAAAAU4U/NCXdL933ze8/s1600/surfacemodel_diffuse.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-HIIqvd9l9RQ/U9PtO-0DdfI/AAAAAAAAU4U/NCXdL933ze8/s400/surfacemodel_diffuse.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;接著發現重要的 Multiply&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-j6A-jfngyS8/U9PtOwMnaCI/AAAAAAAAU4c/dSm9zwWP2Tk/s1600/multiply.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-j6A-jfngyS8/U9PtOwMnaCI/AAAAAAAAU4c/dSm9zwWP2Tk/s400/multiply.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;仔細觀察可以發現它乘上了從左上方導入的 diff_clr，因為是 Multiply，乘法，可以將它拆成兩截，把和 diff_clr 的相乘單獨擺在後面的 Multiply。然後用 Direct Lighting 將前面 Multiply 的 fernel 拆出&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-MZSk3NCi4xQ/U9Pu_49d6sI/AAAAAAAAU4w/aBaKLHptot4/s1600/tweak2.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-MZSk3NCi4xQ/U9Pu_49d6sI/AAAAAAAAU4w/aBaKLHptot4/s400/tweak2.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;如果用 arnold 或是 sitex AIR，以上都當我沒說。&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/1204224608911211095/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=1204224608911211095&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/1204224608911211095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/1204224608911211095'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/07/memo-houdini-mantra-image-plane.html' title='[memo] Houdini, Mantra, image plane...'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-BN-RjyIwmXw/U9PtII-uNpI/AAAAAAAAU4M/O_ibTUXhhB0/s72-c/surfacemodel.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-5047358965968834817</id><published>2014-06-25T00:43:00.006+08:00</published><updated>2014-06-25T00:44:31.789+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Muzik"/><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>Chris Lake - Helium (Merk &amp; Kremont Remix) / Syn Cole - Miami 82 (Merk &amp; Kremont Remix)</title><content type='html'>&lt;br /&gt;最近很喜歡他們 (Merk &amp; Kremont) 有點瘋狂的風格&lt;br /&gt;&lt;br /&gt;&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;//www.youtube.com/embed/kzxqjL9DY3A&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;//www.youtube.com/embed/szTiQLLuIbQ&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;尤其是 Miami 82&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/5047358965968834817/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=5047358965968834817&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/5047358965968834817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/5047358965968834817'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/06/chris-lake-helium-merk-kremont-remix.html' title='Chris Lake - Helium (Merk &amp; Kremont Remix) / Syn Cole - Miami 82 (Merk &amp; Kremont Remix)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-3711962312747054425</id><published>2014-06-24T23:40:00.000+08:00</published><updated>2014-06-24T23:40:18.774+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Design"/><category scheme="http://www.blogger.com/atom/ns#" term="Look &#39;n&#39; Feel"/><title type='text'>linear workflow...why?</title><content type='html'>&lt;br /&gt;很多地方都會教你怎麼在 CG 軟體裡維持 linear workflow，但是你可曾想過...WHY? 為什麼我一定要走 linear workflow？為什麼我在 Nuke 的 Read node 選對了 color space 看到的顏色卻和客戶附帶的原始素材差這麼多？WHY???&lt;br /&gt;&lt;br /&gt;color space 就像一副有色眼鏡，如果今天在一個很純潔的環境用一盞白色的燈打在白色的板子上，然後請你帶上一副紅色的眼鏡。我問你「這塊板子是什麼顏色？」，也許你會不加思索回答紅色，也許。也許我們該把這個問題釐清得清楚一點，如果我分別問你「這塊板子實際上是什麼顏色？」和「從你的眼鏡中看到的這塊板子是什麼顏色？」，這樣答案就變得非常清楚－『這塊板子實際上是白色，但是從眼鏡裡看過去是紅色』。如今關於這塊板子的顏色有了兩種答案，然後我們把眼鏡換成綠色的，再同樣問了這兩個問題。答案會是－『這塊板子實際上是白色，但是從眼鏡裡看過去是綠色』。在兩個答案之中有個答案永遠是一樣的，就是實際上板子的顏色永遠是白色，這是真理，這是科學現象。如果我們利用科學的方法測量這個板子在環境中的顏色然後放進電腦裡用數字表示，這就是所謂的 raw data，也就是 linear color space，它是關於真實世界中的色彩訊息最標準的值，它不受到任何其他因素的影響。接著我們試圖去讓這個值在螢幕上顯示出來，讓大家可以透過螢幕看到科學記錄下來的顏色，就在這個時刻！！我們發現了一件事....&lt;br /&gt;&lt;br /&gt;挖操！太暗了吧！我們用肉眼看到的可不是這樣啊！&lt;br /&gt;&lt;br /&gt;是的，因為螢幕構造的原理讓當初我們記錄下來的顏色看起來很暗，這是螢幕的錯。為了在螢幕上看到我們記錄下來的顏色能夠更接近肉眼所看到的環境，我們毅然決定將原本紀錄的顏色調亮，這就是 sRGB。&lt;br /&gt;&lt;br /&gt;如果問題不是只有亮度呢？如果在一個白色的環境放一顆白色的球用一盞白色的燈打下去，再用你的寶貝攝影機拍個特寫，然後放到電腦裡看。你發現看起來有點昏暗，亮的地方瀰漫著一種淡淡懷舊的黃色，暗的地方有種詭異的綠....這...&lt;br /&gt;&lt;br /&gt;『這...這...這太棒了！！完全是我想要的感覺！』你興奮的如是說。（難怪它是你的寶貝攝影機）&lt;br /&gt;&lt;br /&gt;但是你覺得這顆球太孤單，想用電腦做一個 CG 的球放在它旁邊，用合成的方式。在 Maya 中，你唯一會用的 CG 軟體，白色的牆壁和地板、白色的球、白色的燈....很科學，很符合當初我們設定的環境。但是這樣卻算不出來淡淡懷舊的黃色和詭異的綠。該死！怎麼調顏色都不像你用寶貝攝影機拍下來的畫面，完全不對，就算差一點也不是你想要的那種感覺。所以你就打電話幹爆攝影機廠商，說用他們家攝影機拍出來的畫面，不科學。&lt;br /&gt;&lt;br /&gt;藝術家要的 fu 當然不科學。攝影機廠商也知道這一點。&lt;br /&gt;&lt;br /&gt;攝影機廠商做了許多測試，然後給了你一個數據，這個數據就是告訴你用他們家攝影機拍出來的畫面跟所謂的「科學」差了多少，這就是寶貝攝影機的 color space 和 linear color space 的差距。有了這個數據，你就可以把本來拍攝出來很有&quot;fu&quot;的畫面，轉換成符合科學紀錄的顏色。或是也可以將&quot;很科學的軟體（Maya）&quot;算出來的圖用那組數據轉換成很有&quot;fu&quot;的畫面。如此一來，一切都搭上了。&lt;br /&gt;&lt;br /&gt;Nuke 是完全面向 VFX 的軟體，它知道這一點，大家都要遵循 linear workflow，否則在合成的時候會出問題，絕對不是只有剛剛那種感覺不感覺、科學不科學的問題。CG 合成在很多時候圖上所包含的資訊不是只有顏色，還有更多的數據，它不能依照 color space 去做改變的。z-depth 不能因為你用 sRGB 就讓物體變得更遠，它必須要避開 color space 的影響。所以當你在 Read node 對素材選擇正確的 color space 之後你看到的會是－linear color space（Nuke 會根據你所選擇的 color space 將素材轉換成 linear color space）。因為你必須在這個 color space 底下做事，處理從 CG 軟體過來的圖做合成，然後在最終的時候，再轉換回去。&lt;br /&gt;&lt;br /&gt;將 linear color space 轉換成「很有感覺的 color space」是最後一關才要做的事。sRGB 也不例外。尤其是現在 render pass 或 AOV 大行其道的年代這點更為重要。原本只是一張 sRGB 的圖，卻因為拆成了許多不同的 pass 結果在合成的時候變成 sRGB x N 或是產生像宇宙般不停擴張的 alpha matte。這就是為什麼地方的動畫師需要 linear workflow。&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/3711962312747054425/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=3711962312747054425&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/3711962312747054425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/3711962312747054425'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/06/linear-workflowwhy.html' title='linear workflow...why?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-460721898287863374</id><published>2014-06-24T20:47:00.002+08:00</published><updated>2014-06-24T20:47:34.285+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>The Glitch Mob - I Need My Memory Back (feat. Aja Volkman)</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;//www.youtube.com/embed/dzSpvFwNB4w&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/460721898287863374/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=460721898287863374&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/460721898287863374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/460721898287863374'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/06/the-glitch-mob-i-need-my-memory-back.html' title='The Glitch Mob - I Need My Memory Back (feat. Aja Volkman)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-7842891933590111085</id><published>2014-06-24T03:01:00.000+08:00</published><updated>2014-06-24T03:01:02.686+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>Maor Levi - Together</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;//www.youtube.com/embed/LwYhPGW-XYg&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;歐耶～～&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/7842891933590111085/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=7842891933590111085&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/7842891933590111085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/7842891933590111085'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/06/maor-levi-together.html' title='Maor Levi - Together'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-2564434980761155952</id><published>2014-06-10T22:31:00.003+08:00</published><updated>2014-06-10T22:31:52.803+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="時空交錯"/><title type='text'>後遺症</title><content type='html'>&lt;br /&gt;『這會有什麼後遺症？會上癮嗎？像電影那樣？』&lt;br /&gt;&lt;br /&gt;這...這王八蛋居然殘害民族幼苗！&lt;br /&gt;&lt;br /&gt;『不是啦！我只是...我只是有點擔心他...』&lt;br /&gt;&lt;br /&gt;有沒有搞錯啊？現在是什麼情形？這小倆口到底在演哪齣？欸，不對，是一大一小。我往旁邊望著站在櫃台旁的他，他到底去哪找這麼小的女朋友，太過分了吧！差了十幾歲有，只比我小個幾歲就可以....啊啊啊～雖然有點不對勁但真讓人羨慕啊！等等...剛那口吻是把我當長輩在問嗎？哇糙！我該不會已經到了要當人長輩的時候了吧！太誇張太誇張...我是不是該以長輩的身份說些什麼？啊幹但是說這個算什麼長輩啊！不是受人尊敬的事吧！我的初次長輩體驗就要奉獻在這種事上面嗎？&lt;br /&gt;&lt;br /&gt;嗯...（長輩mode）&lt;br /&gt;&lt;br /&gt;生理上應該是還好，依種類這要說有多嚴重，那在我們那個年代青少年早死一片了。倒是心理上...應該說意識上，妳知道心被掏空的感覺嗎？藥效過後這期間獲得的快樂是要還回去的，立刻喔！全數奉還！可不是分期付款。在那個當下，他會感覺心被掏空了，真的！一滴都不剩！這可不是跟銀行借錢還可以跑去躲起來，在自己的內心是跑不掉的。說來真是奇怪，是為了尋找什麼但最後卻是更空洞的出來。原本以為自己早已沒什麼好失去，之後才意識到能夠失去的還更多。並不是每個人都能面對那種空虛，彷彿有一種心靈上的抗體，就像有些人可以忍受悲傷，有些人卻不行，那些無法面對的人在走投無路的情況下很容易回頭又陷進去，這就很危險了。另一方面雖然可以面對可以忍受，但這種感覺依然存在，我相信這是會日積月累的，至少他目前是擁有抗體可以面對那股強大空虛的人，只是我不知道可以撐多久，我想他自己應該也不知道。能夠抵抗代表他可以從生活中找到其他類似的感受去填補那塊被掏空的區域，但這就不是化學效應，始終得慢慢來。或許你可以幫他，我知道到了某種地步他就不需要用這種方式去獲得快樂，至少在他這個年紀還不需要，如果沒意外的話。（我到底在說啥啊）&lt;br /&gt;&lt;br /&gt;不不不，我不是那個意思，這跟妳做的好不好沒關係。至少某些事情妳比其他人有資格，只有妳做得來，欸～不要誤會我的意思啊！（我真他媽不管在什麼情況下都可以打嘴砲）&lt;br /&gt;&lt;br /&gt;我想有人陪伴是好的。（長輩說到悲從中來了...）&lt;br /&gt;&lt;br /&gt;看她欲言又止的樣子，果然是涉世未深啊！太單純了，一眼就看穿了。&lt;br /&gt;&lt;br /&gt;『喂！在聊啥？』哇糙嚇死我！突然跑回來要是知道我這個長輩說這些不三不四的，這樣好嗎？『奶茶沒有了啦你要不要換點別的？』&lt;br /&gt;&lt;br /&gt;奶茶賣完了？這種店奶茶賣完了怎麼不把鐵門拉下來店關一關算了！&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/2564434980761155952/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=2564434980761155952&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/2564434980761155952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/2564434980761155952'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/06/blog-post.html' title='後遺症'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-6895024230086355599</id><published>2014-06-06T02:43:00.003+08:00</published><updated>2014-06-06T02:43:36.993+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>Cash Cash - Satellites</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/115233917&amp;amp;auto_play=false&amp;amp;hide_related=false&amp;amp;show_comments=true&amp;amp;show_user=true&amp;amp;show_reposts=false&amp;amp;visual=true&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/6895024230086355599/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=6895024230086355599&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/6895024230086355599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/6895024230086355599'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/06/cash-cash-satellites.html' title='Cash Cash - Satellites'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-6144063817000832632</id><published>2014-03-20T23:34:00.000+08:00</published><updated>2014-03-20T23:34:31.889+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="trance"/><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>Aruna - Start A Fire (Johan Malmgren Original Mix)</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/139369845&amp;amp;auto_play=false&amp;amp;hide_related=false&amp;amp;visual=true&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/6144063817000832632/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=6144063817000832632&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/6144063817000832632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/6144063817000832632'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/03/aruna-start-fire-johan-malmgren.html' title='Aruna - Start A Fire (Johan Malmgren Original Mix)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-3366637710201576239</id><published>2014-03-10T02:51:00.002+08:00</published><updated>2014-03-10T02:51:14.717+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>Blende - Rikki (Phonat Remix)</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/115770871&amp;amp;auto_play=false&amp;amp;hide_related=false&amp;amp;visual=true&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/3366637710201576239/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=3366637710201576239&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/3366637710201576239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/3366637710201576239'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/03/blende-rikki-phonat-remix.html' title='Blende - Rikki (Phonat Remix)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-2530341345032110843</id><published>2014-03-09T19:43:00.000+08:00</published><updated>2014-03-09T19:43:52.493+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Houdini"/><title type='text'>[memo] matrix</title><content type='html'>&lt;br /&gt;向量進階班&lt;br /&gt;&lt;br /&gt;矩陣 matrix 的計算方式剛好符合空間轉換需要的三角函數。如果將 point position 視為 1x3 矩陣的話，它可以乘上任何 3xN 矩陣形成 1xN 矩陣。一般計算旋轉只需要 3x3 matrix，3x3 matrix 當中每個 row 就是三個正相交的 XYZ 座標。如果以一般原始數值為例就是 (1,0,0) (0,1,0) (0,0,1)，正是所謂的 identity matrix。如果將三個正相交的軸向重新定義，原本的 p 值乘上之後就會得到位於新空間的位置。如果這三個軸向沒有 normalize 會附加 scale 效果，三軸沒有正相交則會形成歪斜。&lt;br /&gt;&lt;br /&gt;如果空間位移則需要 4x3 matrix。&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-V8ZRe9WcBXE/UxxPd06yeCI/AAAAAAAAT4s/nTyQuP0ZIfs/s1600/matrix.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-V8ZRe9WcBXE/UxxPd06yeCI/AAAAAAAAT4s/nTyQuP0ZIfs/s540/matrix.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;如果乘上經過 invert 的 matrix 則會得到從 matrix 空間還原到 identity matrix 空間的結果。&lt;br /&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/2530341345032110843/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=2530341345032110843&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/2530341345032110843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/2530341345032110843'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/03/memo-matrix.html' title='[memo] matrix'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-V8ZRe9WcBXE/UxxPd06yeCI/AAAAAAAAT4s/nTyQuP0ZIfs/s72-c/matrix.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-460582235910915247</id><published>2014-03-01T23:13:00.002+08:00</published><updated>2014-03-01T23:13:41.103+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="trance"/><category scheme="http://www.blogger.com/atom/ns#" term="一首"/><title type='text'>Cole Plante with Myon &amp; Shane 54 feat. Ruby O&#39;Dell - If I Fall</title><content type='html'>&lt;br /&gt;&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;//www.youtube.com/embed/Z5Ek8gBjaz4&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/460582235910915247/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=460582235910915247&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/460582235910915247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/460582235910915247'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/03/cole-plante-with-myon-shane-54-feat.html' title='Cole Plante with Myon &amp; Shane 54 feat. Ruby O&#39;Dell - If I Fall'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-8660888813817670341</id><published>2014-02-28T23:22:00.000+08:00</published><updated>2014-02-28T23:28:46.387+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Houdini"/><title type='text'>[memo] custom clumps problem</title><content type='html'>&lt;br /&gt;想要自己定義 clumps 一直有位移跑掉的問題，結果發現是 shelf tool 產生的東西本來就有問題&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-IaUuq6gDsvI/UxCn5lAJEqI/AAAAAAAATpg/OuaYbBQX1no/s1600/v.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-IaUuq6gDsvI/UxCn5lAJEqI/AAAAAAAATpg/OuaYbBQX1no/s540/v.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;果然不能太相信 shelf tool。@clumporigin 前面少個 v 啊！&lt;br /&gt;&lt;br /&gt;其實我也對於 wrangle nodes 裡 vex code 屬性前面到底要不要加註類型感到很困惑，有時候沒有可以，有時候又不行。甚至在變數傳遞我也感到迷惘，到底要用 set 還是直接上 =。簡直比女人還難捉摸...</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/8660888813817670341/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=8660888813817670341&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/8660888813817670341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/8660888813817670341'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/02/memo-v.html' title='[memo] custom clumps problem'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-IaUuq6gDsvI/UxCn5lAJEqI/AAAAAAAATpg/OuaYbBQX1no/s72-c/v.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-3095604157669751122</id><published>2014-02-20T00:26:00.000+08:00</published><updated>2014-02-20T00:26:21.451+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Houdini"/><title type='text'>[memo] water freezing</title><content type='html'>&lt;br /&gt;&lt;iframe src=&quot;//player.vimeo.com/video/86514636&quot; width=&quot;500&quot; height=&quot;281&quot; frameborder=&quot;0&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;這是一次 tea time challenge，就是一個下午在咖啡店打屁討論就可以做出來的效果。&lt;br /&gt;&lt;br /&gt;flip object 本身其實沒什麼特別，就是水往牆上噴，然後在 sop solver 裡把 smoke object 的 density field 抓進來做 volume sample，只要有 density 值，速度就歸零，需要一個 float attribute 替結凍過後的 flip particles 做 mark。這可以將結凍過後的 particles 拿來當作 smoke object 的 source 以及在 shading 的時候用來區分材質。更重要的是 sopsolver 處理的是 Geometry Data，但是重力 gravity 是在 Force 欄位所以在速度歸零後 particles 仍會受重力影響，唯一能把部分 particles 遮蔽的方法只能使用 mask field。mask field 的來源就是結凍過後的 particles 產生的 SDF。&lt;br /&gt;&lt;br /&gt;smoke object 除了本來牆底下的 source 以外結凍過後 particles 也會當成 source 用來作為結凍的延伸。&lt;br /&gt;&lt;br /&gt;這樣做的速度快但是有缺點，一些獨立的水珠凝結後會在空中懸浮，目前唯一能想到的是在 sop 中先將 surface partition 再把 mark attribute 做兩次 promote 去判斷是否為一個完全的結凍體，是的話就 inherit velocity 轉 RBD。但這可能一次 tea time 不夠了，因為會產生的問題會還不少...如果用偵測碰撞才開始產生結凍效果那這些問題就都不存在了。</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/3095604157669751122/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=3095604157669751122&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/3095604157669751122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/3095604157669751122'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/02/memo-water-freezing.html' title='[memo] water freezing'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27139364.post-6898658312284752912</id><published>2014-02-08T23:53:00.000+08:00</published><updated>2014-02-08T23:53:43.951+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Houdini"/><title type='text'>向量旋轉</title><content type='html'>&lt;br /&gt;在使用 copy instance / particle instance 的時候會遇見名為 orient 的 vector4 屬性。Houdini 在 VOP 中也可以用四元數（Quaternion / vector4）來做向量之間的旋轉，或是進一步對空間旋轉。&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-0019uJp-JIs/UvZSgkjJ47I/AAAAAAAATkY/jIg3Q1K0lnU/s1600/vector_rotate.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-0019uJp-JIs/UvZSgkjJ47I/AAAAAAAATkY/jIg3Q1K0lnU/s540/vector_rotate.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;利用 align 產生從 vectorA 轉到 vectorB 需要的 matrix 值再轉換成四元數（Quaternion），這已經是可以丟到 orient 去做 instance 的屬性了。但是此時旋轉的 normal 是指向 vectorA 與 vectorB 的外積，可以利用 Rotate 節點再進行一次側面的旋轉。Rotate 的輸入是弧度（radian），axis 是旋轉軸心。Rotate by Quaternion 節點可以將任何向量套用計算好的 quaternion 進行空間的旋轉。&lt;br /&gt;&lt;br /&gt;比方說如果已經有一粒 particle，具有 v 值。這時候想利用 Point Replicate Procedural 在 v 值的方向進行 random scatter shading。直接在 v 上進行 scatter 的散佈計算會很麻煩，就可以先以 {0,1,0} 為基準去計算，再把產生好的位置用 quaternion 轉到依附在 v 方向上的位置。&lt;br /&gt;&lt;br /&gt;用 quaternion 轉向的另外一個好處就是，沒有 gimbal lock。</content><link rel='replies' type='application/atom+xml' href='http://chordee.blogspot.com/feeds/6898658312284752912/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=27139364&amp;postID=6898658312284752912&amp;isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/6898658312284752912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27139364/posts/default/6898658312284752912'/><link rel='alternate' type='text/html' href='http://chordee.blogspot.com/2014/02/blog-post.html' title='向量旋轉'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-0019uJp-JIs/UvZSgkjJ47I/AAAAAAAATkY/jIg3Q1K0lnU/s72-c/vector_rotate.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>