再戰 CMake - Autostereoscopic Mixer

上次接觸 CMake ,是兩年前的事了(註1、註2),那之後,除了幾次使用一些 opensource project 需要使用到外,完全沒有任何其它的經驗,整個就是停擺。最近因為要處理一個 autostereoscopic mixer 的問題,需要把之前同事寫的程式放到不同平台上去編譯,發現到這件事有如下的幾個特性: 程式碼使用 C/C++ 撰寫而成。 跨平台。需要不同的 make 包:Makefile for Linux, XCode for Mac, Visual Studio solution for Windows。 使用到外部的 library。FreeImage & FreeImagePlus ,但是並非所有平台都有 FreeImagePlus,可能得自行 make 一個出來。 於是再度繼出 CMake 來~ 首要問題是,在 cmake 的官方 modules 裏頭找不到 FindFreeImage 這個 cmake module @@ 一開始以為只是因為 MacPorts 裏包的 cmake 沒有,查了一下 Ubuntu 裏頭包的也沒,實在很傷腦筋,一點都不想自己寫個 module 出來,至少不想一開始就要寫。還好我們有好朋友 google,順利在網路上找到別人寫好的 FindFreeImage.cmake 。緊接著才發現,原來我們還需要的是 FreeImagePlus,這個 C++ wrapper for FreeImage,偏偏 MacPorts 裏包的 FreeImage 不包含…一時不曉得怎麼處理。雖然訝異 MacPorts 的版本不包含 Plus,也意外沒有任何 variants 可用的,但我猜,應該是有辦法透過 port 來自行設定的吧,只是我不會 :p 想說,那就下載 FreeImage 程式碼,把裏頭的 FreeImagePlus 拿出來,然後給它包個 cmake module,產生個 libfreeimageplus.a 吧。 ...

January 15, 2011 · 5 分鐘 · Drake Guan

Windows 下,我只用 IrfanView

我記得 Windows 3.1 的時代時,內建了檔案總管、筆記本、小畫家、播/錄音程式、踩地壘、計算機、日曆…以外,就沒啥其它的了。那時要看一張圖,可能就是用小畫家吧。僅支援 .BMP 的樣子,要不,就得自行去找第三方開發的看圖程式。只能說,在那個早期的時代,雖然圖像也是很重要的,但因為 Win3.1 有太多的方向可以發展,所以沒有第一時間把 image viewer 的部分內建進去,這情況一直維持了好一段時間。 ...

January 10, 2011 · 3 分鐘 · Drake Guan

Another projection mapping

Another projection mapping. I love the distorting building in the opening ^>^ Barco Newsletter: http://www.barco.com/ebooks/redefine_… 3D Projection mapping in the city of Sugarland, Texas for New Years Eve 2010. LD Systems provided sound, lights, video and staging for the 25th anniversary of the city. The equipment included a gramdMA lighting console, Barco HD projectors, Hippotizer HD media server and mapping system, and EV X-Line concert speakers. LDS and TV&P collaborated for this event on the heels of the overwhelmingly successful Glowrama event. ...

January 4, 2011 · 1 分鐘 · Drake Guan

閱讀:真正的問題是什麼?你想通了嗎?

最近一次買的書:真正的問題是什麼?你想通了嗎? 相較於之前買回來的書(部分) ,非常明顯地,這本書異常地好讀。文字精簡但切中題要,這點中文翻譯保持了原汁原味。每一個小小的論點,會佐以適切時的模擬情境,讓人讀來,幾乎忘了這是一本知識性工具書籍,反倒有點像是小品文章集的書。 ...

January 2, 2011 · 2 分鐘 · Drake Guan

Chunky Move's Mortal Engine

Although we got excellent Internet world such that we can get anything even though we were not there, but I still feel sorry not able to attend this great event. It’s a gorgeous show definitely. I love the idea of making use of shadow instead of light on actors to reverse the impression of performance. Hope one day I can see similar or even better performance like this~

December 29, 2010 · 1 分鐘 · Drake Guan

國寶總動員 in 2010 北京文化創意產業博覽會

2010北京國際文化創意產業博覽會 於 11 中旬落幕。台灣文創館裏,由故宮負責的部分,展出的內容之一包含國寶總動員。 That’s a good news, but also a bad news. How come couldn’t our gorgeous National Palace Museum provide much more new product? I am looking for much more multi-dimensional media produced by NPM to the world. That will definitely encourage people a lot :D

December 25, 2010 · 1 分鐘 · Drake Guan

A Taste of Production Pipeline

Production Pipeline: Asset Management Naming Convention Task Assignment Revision Control Message Communication Recently, I rethink about what a (animation) production pipeline is and turns out those 5 easy-to-get terms. They are too ordinary to forget, and I decided to keep a place for them.

December 24, 2010 · 1 分鐘 · Drake Guan

你有口袋清單嗎?

我一直記得有人跟我提過,“如果沒有看過教父 三部曲,就不是男人。“為此,我也一直艮艮於懷,因為我真的沒看過,也難怪我一直懷疑,好像少了點什麼。法蘭西斯·柯波拉 在拍攝教父這部片子以前,就已經認識了艾爾·帕西諾 了,他們甚至差點完成一部電影作品。之後,當柯波拉要開始拍攝教父時,帕西諾成了當然的人選。 ...

December 20, 2010 · 2 分鐘 · Drake Guan